Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bigquery): expose identifiers using a variety of formats #5017

Merged
merged 9 commits into from Dec 1, 2021

Conversation

shollyman
Copy link
Contributor

This PR adds an Identifier() method to common BQ resources so
that users can get an identifier that is formatted appropriately
for their use case (legacy sql, standard sql, referencing in storage
API, etc).

Existing instances of FullyQualifiedName() have been migrated to the
new method.

Fixes: #1955

This PR adds an Identifier() method to common BQ resources so
that users can get an identifier that is formatted appropriately
for their use case (legacy sql, standard sql, referencing in storage
API, etc).

Existing instances of FullyQualifiedName() have been migrated to the
new method.

Fixes: googleapis#1955
@shollyman shollyman requested a review from a team October 21, 2021 20:55
@shollyman shollyman requested a review from a team as a code owner October 21, 2021 20:55
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 21, 2021
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the BigQuery API. label Oct 21, 2021
@shollyman shollyman requested a review from tswast October 25, 2021 21:11
Copy link
Contributor

@tswast tswast left a comment

Choose a reason for hiding this comment

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

Useful! Curious that there's different quoting rules for BQML vs Tables.

@shollyman
Copy link
Contributor Author

shollyman commented Oct 25, 2021

Useful! Curious that there's different quoting rules for BQML vs Tables.

Tables have special case behavior for quoting that obviates need for quoting, and BQML seems to want to quote the entire identifier, not the individual parts. Cited in the comments.

Annnnnd you weren't asking a question, misread this.

@shollyman shollyman added automerge Merge the pull request once unit tests and other checks pass. and removed automerge Merge the pull request once unit tests and other checks pass. labels Oct 26, 2021
@shollyman shollyman enabled auto-merge (squash) December 1, 2021 00:02
@shollyman shollyman merged commit c9cd984 into googleapis:main Dec 1, 2021
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: Table.FullyQualifiedName() incompatible name formatting
2 participants