-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
BigQuery: Allow subset of schema to be passed into load_table_from_dataframe
.
#9064
Conversation
09bb705
to
dba55a4
Compare
The types of any remaining columns will be auto-detected.
dba55a4
to
105ebc9
Compare
Blocked by #9074 Test failures are because the schema in the snippets samples cannot be autodetected and we send a schema of |
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.
Looks good, I can see how this can be useful to users. 👍
Had a few sanity check remarks/questions, please just check if any of them apply.
Edit: What about the last point in the PR checklist, i.e. updating snippets?
On second thought, since the snippets show writing the indexes of a DataFrame, I can't actually update them until #5572 (comment) is fixed. I'll work on that issue next. |
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.
Looks good, and I agree with leaving out the snippets until their blocker is resolved.
Edit: One of the unit tests is failing, needs a fix.
…googleapis#9064) * Allow subset of schema to be passed into `load_table_from_dataframe`. The types of any remaining columns will be auto-detected. * Warn when it's not possible to determine a column type.
…googleapis#9064) * Allow subset of schema to be passed into `load_table_from_dataframe`. The types of any remaining columns will be auto-detected. * Warn when it's not possible to determine a column type.
Closes #8140
load_table_from_dataframe
.Update snippets to show overriding schema for columns whose types can't be autodetected.Blocked by BigQuery: Load to table from dataframe without index #5572 (comment).This PR is branched from #9049.