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 of the project ID with org prefix to the Table.from_string() method#9161

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

Conversation

@emar-kar
Copy link
Contributor

ID splitting was moved to a separate method to avoid code duplication.Dataset file changed to the new implementation.

Closes:#7827

@googlebotgooglebot added the cla: yesThis human has signed the Contributor License Agreement. labelSep 3, 2019
@IlyaFaerIlyaFaer added api: bigqueryIssues related to the BigQuery API. kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelsSep 3, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelSep 3, 2019
flake8 fixed
@IlyaFaerIlyaFaer added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelSep 3, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelSep 3, 2019
@IlyaFaerIlyaFaer marked this pull request as ready for reviewSeptember 3, 2019 12:50
@IlyaFaerIlyaFaer requested review froma team and removed request fora teamSeptember 3, 2019 12:50
Copy link
Contributor

@plamutplamut left a comment

Choose a reason for hiding this comment

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

The PR fixes the reported issue. 👍

There is one docstring missing, and the regex pattern might need a change, please check the comment if it applies.

BTW, it would probably be useful to add another test case for tables with an optional partition suffix, e.g."example.com:project_id.dataset_id.table_id$20190903"
.

emar-kar reacted with thumbs up emoji
* added the docstring for the '_split_id' method
Copy link
Contributor

@plamutplamut left a comment

Choose a reason for hiding this comment

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

Under the assumption that we do not want to handle all possible cases such as too long ID parts, etc., these changes look good to me. 👍

@IlyaFaerIlyaFaer added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelSep 5, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelSep 5, 2019
@IlyaFaerIlyaFaer added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelSep 5, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelSep 5, 2019
@plamutplamut merged commit9f471fb intogoogleapis:masterSep 6, 2019
@emar-karemar-kar deleted the project-ID-w-prefix-for-the-Table.from_string-method branchSeptember 9, 2019 07:14
emar-kar added a commit to MaxxleLLC/google-cloud-python that referenced this pull requestSep 11, 2019
…from_string() method (googleapis#9161)* add prefix support* Update _helpers.py* consolidate the regex* update split_id method* '_parse_id' method renamed to '_split_id'* switched to 're.groups' implementation instead of partly grouping* Update dataset.pyflake8 fixed* Update _helpers.py* added the docstring for the '_split_id' method* fix lint failure
emar-kar added a commit to MaxxleLLC/google-cloud-python that referenced this pull requestSep 18, 2019
…from_string() method (googleapis#9161)* add prefix support* Update _helpers.py* consolidate the regex* update split_id method* '_parse_id' method renamed to '_split_id'* switched to 're.groups' implementation instead of partly grouping* Update dataset.pyflake8 fixed* Update _helpers.py* added the docstring for the '_split_id' method* fix lint failure
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast approved these changes

+1 more reviewer

@plamutplamutplamut approved these changes

Reviewers whose approvals may not affect merge requirements

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: Table.from_string() doesn't support GCP project ID with org prefix

6 participants

@emar-kar@tswast@plamut@googlebot@IlyaFaer@yoshi-kokoro

[8]ページ先頭

©2009-2025 Movatter.jp