Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: addreference_file_schema_uri to LoadJobConfig, ExternalConfig#1399

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
aribray merged 29 commits intogoogleapis:mainfromaribray:aribray--federated-formats
Nov 14, 2022

Conversation

@aribray
Copy link
Contributor

@aribrayaribray commentedNov 4, 2022
edited
Loading

Current behavior:

  • for load jobs from federated formats like AVRO, PARQUET, and ORC, BigQuery uses the schema of whichever file is lexicographically last.

Example:

source_uris = [    "gs://{project}/{bucket_name}/c-file.avro",     "gs://{project}/{bucket_name}/b-file.avro",    "gs://{project}/{bucket_name}/r-file.avro",]

"gs://{project}/{bucket_name}/r-file.avro" is lexicographically last

New behavior:

  • Thereference_file_schema_uri field allows users to specify the schema
  • Thereference_file_schema_uri does not have to be a file from thesource_uris list
  • To prevent data loss, thereference_file_schema_uri should be a superset of the schemas in thesource_uris list

Googlers see 246809557

@product-auto-labelproduct-auto-labelbot added size: mPull request size is medium. api: bigqueryIssues related to the googleapis/python-bigquery API. labelsNov 4, 2022
@aribrayaribray marked this pull request as ready for reviewNovember 4, 2022 15:56
@aribrayaribray requested a review froma teamNovember 4, 2022 15:56
@aribrayaribray requested a review froma team as acode ownerNovember 4, 2022 15:56
@product-auto-labelproduct-auto-labelbot added size: lPull request size is large. and removed size: mPull request size is medium. labelsNov 4, 2022
Copy link
Contributor

@leahecoleleahecole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yeah with the nits, I'm honestly torn. Use your best judgment - it's nbd if it's not changed.

@product-auto-labelproduct-auto-labelbot added size: mPull request size is medium. and removed size: lPull request size is large. labelsNov 9, 2022
@product-auto-labelproduct-auto-labelbot removed the size: mPull request size is medium. labelNov 10, 2022
@aribrayaribray added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 10, 2022
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 10, 2022
@aribrayaribray added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 10, 2022
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 10, 2022
@aribrayaribray added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 10, 2022
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 10, 2022
@aribrayaribray added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 11, 2022
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 11, 2022
@aribrayaribray added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 13, 2022
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 13, 2022
@aribrayaribray merged commit931285f intogoogleapis:mainNov 14, 2022
@aribrayaribray deleted the aribray--federated-formats branchNovember 14, 2022 22:26
abdelmegahedgoogle pushed a commit to abdelmegahedgoogle/python-bigquery that referenced this pull requestApr 17, 2023
googleapis#1399)* feat: add 'reference_file_schema_uri' to LoadJobConfig and ExternalConfig
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@leahecoleleahecoleleahecole approved these changes

@Neenu1995Neenu1995Neenu1995 approved these changes

Assignees

No one assigned

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.size: lPull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@aribray@leahecole@Neenu1995@yoshi-kokoro

[8]ページ先頭

©2009-2025 Movatter.jp