Skip to content

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

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

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

Conversation

@plamut

Copy link
Copy Markdown
Contributor

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.

@plamutplamut added the api: bigquery Issues related to the BigQuery API. label Sep 5, 2019
@plamut
plamut requested a review from a teamSeptember 5, 2019 07:28
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 5, 2019
@plamut
plamut merged commit 5c0ea2e into googleapis:masterSep 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigqueryIssues related to the BigQuery API.cla: yesThis 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

@plamut@tswast@googlebot