-
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: Autofetch table schema on load if not provided #9108
Conversation
Unit tests passing locally, but failing on Kokoro, investigating... Update: Found a non-essential lint issue (unused import), but unit tests also fail on the latest Update 2: Submitted a fix in #9112. |
A similar check is already performed on the server, and server-side errors are preferred to client errors.
A mock should raise this error instead of returning a table to trigger schema generation from Pandas dtypes.
Restarted due to failed snippets tests (500 - internal server error) - Kokoro log. |
The |
…9108) * Autofetch table schema on load if not provided * Avoid fetching table schema if WRITE_TRUNCATE job * Skip dataframe columns list check A similar check is already performed on the server, and server-side errors are preferred to client errors. * Raise table NotFound in auto Pandas schema tests A mock should raise this error instead of returning a table to trigger schema generation from Pandas dtypes. * Use list_columns_and_indexes() for names list
…9108) * Autofetch table schema on load if not provided * Avoid fetching table schema if WRITE_TRUNCATE job * Skip dataframe columns list check A similar check is already performed on the server, and server-side errors are preferred to client errors. * Raise table NotFound in auto Pandas schema tests A mock should raise this error instead of returning a table to trigger schema generation from Pandas dtypes. * Use list_columns_and_indexes() for names list
Closes #8142.
This PR adds automatic table schema fetching to the
load_table_from_dataframe()
method to improve automatic schema detection.No additional system tests, because there already exists a "schema autodetect" test.
How to test
Check that the code is in-line with ticket specs.