question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

simple query hangs in 0.14.1, works in 0.13.3

See original GitHub issue

SUMMARY_TABLE is very simple million-record table in bigquery, nothing but short strings, numbers, and a timestamp.

Installed pandas-gbq and got the 0.14.1 version.

Run

query = f"select * from {SUMMARY_TABLE} LIMIT 20000"
df = pd.read_gbq(query,
                 project_id=PROJECT_NAME,
                 dialect='standard',
                 progress_bar_type='tqdm',
       )

and it works normally.

Run

query = f"select * from {SUMMARY_TABLE} LIMIT 50000"
df = pd.read_gbq(query,
                 project_id=PROJECT_NAME,
                 dialect='standard',
                 progress_bar_type='tqdm',
       )

(or no LIMIT) and it runs forever. Note that I tried setting max_results and it didn’t make any difference, even if set to less than 20000.

Uninstall 0.14.1, install 0.13.3, the problem is gone.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

3reactions
mmwilbertcommented, Nov 21, 2020

Works with google-cloud-bigquery==2.3.1

0reactions
tswastcommented, Dec 17, 2020

Actually, I’ll re-open this to mark version 2.4.x as unsupported.

Read more comments on GitHub >

github_iconTop Results From Across the Web

simple query hangs in 0.14.1, works in 0.13.3 #343 - GitHub
Installed pandas-gbq and got the 0.14.1 version. Run. query = f"select * from {SUMMARY_TABLE} LIMIT 20000" df = pd.read_gbq(query, project_id ...
Read more >
Simple query hangs on a specific column condition
Any idea how to troubleshoot this ? EDIT : Curiously, SELECT * FROM products WHERE user_id IS NULL limit 1; works fine. mysql...
Read more >
Increasing slow MySQL query performance with the parallel ...
Simple query. Now we can run some queries. The first query is very simple: find all flights per year (in the US):. MySQL....
Read more >
SQL - Customer and salesmen who lives in the same city
From the following tables, write a SQL query to find the salespeople and customers who live in the same city. Return customer name ......
Read more >
Changelog - Prefect Docs
Fix bug where flows with emoji characters pass flow.validate() , but fail to extract from file - #6375; Fix FlowRunView task run query...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found