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

BigQuery: Add support for unsetting LoadJobConfig schema#9077

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
tswast merged 1 commit intogoogleapis:masterfromplamut:iss-9074
Aug 22, 2019

Conversation

@plamut
Copy link
Contributor

Closes#9074.

This PR adds a public way of unsetting a schema from aLoadJobConfig.

How to test

Create aLoadJobConfig with aschema attribute, then setschema toNone --> the schema should be cleared.

@plamutplamut added the api: bigqueryIssues related to the BigQuery API. labelAug 22, 2019
@plamutplamut requested review froma team andtswastAugust 22, 2019 11:49
@googlebotgooglebot added the cla: yesThis human has signed the Contributor License Agreement. labelAug 22, 2019

config.schema=None
self.assertNotIn("schema",config._properties["load"])
config.schema=None# no error, idempotent operation
Copy link
ContributorAuthor

@plamutplamutAug 22, 2019
edited
Loading

Choose a reason for hiding this comment

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

This extra assignment is to catch fragile implementations such as
del self._properties["load"]["schema"]

(nope, did not do it myself, but I've seen similar bugs in the past 😆 )

tswast reacted with laugh emoji
Copy link
Contributor

@tswasttswast left a comment

Choose a reason for hiding this comment

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

Thanks for handling this so quickly!

@tswasttswast merged commita279630 intogoogleapis:masterAug 22, 2019
@plamutplamut deleted the iss-9074 branchAugust 22, 2019 16:18
HemangChothani pushed a commit to HemangChothani/google-cloud-python that referenced this pull requestAug 29, 2019
emar-kar pushed a commit to MaxxleLLC/google-cloud-python that referenced this pull requestSep 18, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast approved these changes

Assignees

No one assigned

Labels

api: bigqueryIssues related to the BigQuery API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BigQuery: LoadJobConfig.schema setter should accept None

3 participants

@plamut@tswast@googlebot

[8]ページ先頭

©2009-2025 Movatter.jp