-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat: add write_engine
parameter to read_FORMATNAME
methods to control how data is written to BigQuery
#371
base: main
Are you sure you want to change the base?
Conversation
…ntrol how data is written to BigQuery
Blocked by googleapis/python-bigquery#1815 |
…n-bigquery-dataframes into b323176126-write_engine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might make sense to expose some of these methods in a public place since they are shared by the client library, pandas-gbq, and now bigframes.
A similar method is exposed publicly at
but it's been deprecated for quite some time. I think we may want to revisit that deprecation and revive it. Will need to think carefully about circular dependencies, though.
Test failure is a real one:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[typo] file name *helpers.py
third_party/bigframes_vendored/google_cloud_bigquery/_pyarrow_helpers.py
Show resolved
Hide resolved
third_party/bigframes_vendored/google_cloud_bigquery/_pyarrow_helpers.py
Show resolved
Hide resolved
third_party/bigframes_vendored/google_cloud_bigquery/tests/unit/test_pyarrow_hlpers.py
Show resolved
Hide resolved
import bigframes.constants | ||
|
||
ENGINE_ERROR_TEMPLATE = ( | ||
"write_engine='{write_engine}' is incompatible with engine='{engine}'. " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make it more helpful by suggesting what are valid combinations?
("engine", "write_engine"), | ||
( | ||
("bigquery", "bigquery_streaming"), | ||
("bigquery", "bigquery_inline"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add (None, "bigquery_external_table") too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't implemented that one yet.
Marking as |
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes internal issue 323176126
🦕