Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

BigQuery: Deprecate automatic schema conversion in load_table_from_dataframe()#9176

Merged
plamut merged 1 commit intogoogleapis:masterfrom
plamut:iss-9042
Sep 6, 2019
Merged

BigQuery: Deprecate automatic schema conversion in load_table_from_dataframe()#9176
plamut merged 1 commit intogoogleapis:masterfrom
plamut:iss-9042

Conversation

@plamut
Copy link
Contributor

@plamut plamut commented Sep 5, 2019

Closes #9042.

This PR adds a deprecation warning if a schema cannot be autodetected in full, and a fallback to to_parquet logic is needed.

How to test

Try loading data into a new table from a dataframe with at least one column whose dtype is "object" (e.g. a STRING column), and without providing an explicit schema in JobConfig. The load_table_from_dataframe() method should issue a (pending) deprecation warning.

@plamut plamut added the api: bigquery Issues related to the BigQuery API. label Sep 5, 2019
@plamut plamut requested a review from a team September 5, 2019 07:28
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 5, 2019
@plamut plamut merged commit 5c0ea2e into googleapis:master Sep 6, 2019
@plamut plamut deleted the iss-9042 branch September 6, 2019 19:45
emar-kar pushed a commit to MaxxleLLC/google-cloud-python that referenced this pull request Sep 11, 2019
emar-kar pushed a commit to MaxxleLLC/google-cloud-python that referenced this pull request Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BigQuery: Deprecate automatic schema conversion in load_table_from_dataframe

3 participants