-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Improve speed when listing table comments in BigQuery #21581
Conversation
8fe0a80
to
cef7a46
Compare
5546249
to
bf0e99f
Compare
private static String unquote(String quoted) | ||
{ | ||
return quoted.substring(1, quoted.length() - 1) | ||
.replace("\"\"", "\""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The option_value is quoted as BigQuery official documentation says: https://cloud.google.com/bigquery/docs/information-schema-table-options#example_2
Special characters are tested in BaseConnectorTest#testCommentTableSpecialCharacter()
.
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryConfig.java
Show resolved
Hide resolved
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryClient.java
Show resolved
Hide resolved
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryConfig.java
Outdated
Show resolved
Hide resolved
bf0e99f
to
e4c9e33
Compare
e4c9e33
to
9fe2a53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
fa421f9
to
35602ca
Compare
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryMetadata.java
Outdated
Show resolved
Hide resolved
35602ca
to
4291c1b
Compare
Description
Test results with 46 tables:
Release notes
(x) Release notes are required, with the following suggested text: