-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
BigQuery: Standardizes region tags and adds query snippets from java-docs-samples #3180
BigQuery: Standardizes region tags and adds query snippets from java-docs-samples #3180
Conversation
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.
👍 on the sample updates. Just a couple of comments there. Could you run the utilities/add_snippets_to_file.py
script so that these sample updates make it into the JavaDocs?
@@ -167,14 +174,14 @@ public Table updateTable(String datasetName, String tableName, String newFriendl | |||
// [TARGET delete(String, DatasetDeleteOption...)] | |||
// [VARIABLE "my_dataset_name"] | |||
public Boolean deleteDataset(String datasetName) { | |||
// [START deleteDataset] | |||
// [START bigquery_java_untracked] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
// Allow results larger than the maximum response size. | ||
// If true, a destination table must be set. See: | ||
// https://cloud.google.com/bigquery/docs/writing-results#large-results | ||
.setAllowLargeResults(true) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
// Print the results. | ||
DateTimeFormatter formatter = ISODateTimeFormat.dateTimeNoMillis().withZoneUTC(); | ||
for (FieldValueList row : bigquery.query(queryConfig).iterateAll()) { | ||
for (FieldValue val : row) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
The utilities/add_snippets_to_file.py script takes two arguments:
|
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.
Love it!
@@ -174,14 +169,14 @@ public Table updateTable(String datasetName, String tableName, String newDescrip | |||
// [TARGET delete(String, DatasetDeleteOption...)] | |||
// [VARIABLE "my_dataset_name"] | |||
public Boolean deleteDataset(String datasetName) { | |||
// [START bigquery_java_untracked] | |||
// [START ] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This PR: