-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Add ability to set the allowLargeResults option in BigQuery #10474 #11209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ac3cd4a
to
19f910f
Compare
'allowLargeResults'
option in Google BigQu…19f910f
to
ca84279
Compare
this would be confusing to a user as read_gbq should return s frame |
Yes,
I will add a unit tests now for the above mentioned scenarios (I missed it the first time around) All tests pass locally. Could this make it into the 0.17.0 release? I think it is a very useful feature.
|
this is bloating the API if u r returning a frame then simply use to_gbq and push it back up |
I agree that it doesn't make sense to return the data in a DataFrame when a destination table is specified (since you can use to_gbq to push it back up). My preference would be to return an empty DataFrame when a destination table is specified in order to avoid the unnecessary download and upload of data when users want to create smaller datasets from larger ones. The ability to run queries and send the query results directly to a table (in an efficient manner) could be useful. Regarding the |
Another potential solution, is to create a new function |
@parthea I am not averse to these changes. But would like 0.17.0 to release and settle before considering api change. |
further crafting a nice useful, non-duplicative api is actually tricky. You want to have the limited set of things that one could 'do' in an intuitve way. So one of the big issues is how to pass in options (.e.g like |
Do you think it would be better to close this pull request, and request that we support this feature in the odo project instead (assuming that odo will support gbq) since the odo project is aimed at data migration? The functionality in this pull request could be similar to the following pull request in odo which adds ability to append query results to a table : blaze/odo#37 |
ca84279
to
a4ff065
Compare
read_gbq()
to allow users to redirect the query results to a destination table via thedestination_table
parameterread_gbq()
to allow users to allow users to set the'allowLargeResults'
option in the BigQuery job configuration via theallow_large_results
parametercc @aaront