Content-Length: 286890 | pFad | https://github.com/googleapis/java-bigquery/commit/0e0b7a6d76855922182d20e90fcde0b135e8b6b8

F9 Merge 9ce1d9c20438c6ba3e290968b4715b617bfdf0ae into 40e016bf0fc4a0944… · googleapis/java-bigquery@0e0b7a6 · GitHub
Skip to content

Commit 0e0b7a6

Browse files
Merge 9ce1d9c into 40e016b
2 parents 40e016b + 9ce1d9c commit 0e0b7a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/snippets/src/main/java/com/example/bigquery/ExtractTableToJson.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static void main(String[] args) {
4343

4444
// Note that FormatOptions.json().toString() is not "JSON" but "NEWLINE_DELIMITED_JSON"
4545
// Using FormatOptions Enum for this will prevent problems with unexpected format names.
46-
String dataFormat = FormatOptions.json().toString();
46+
String dataFormat = FormatOptions.json().getType();
4747

4848
extractTableToJson(projectId, datasetName, tableName, destinationUri, dataFormat);
4949
}

samples/snippets/src/test/java/com/example/bigquery/ExtractTableToJsonIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void testExtractTableToJson() {
7272
String tableName = "shakespeare";
7373
String destinationUri = "gs://" + GCS_BUCKET + "/extractTest.json";
7474
// FormatOptions.json() is not "JSON" but "NEWLINE_DELIMITED_JSON"
75-
String dataFormat = FormatOptions.json().toString();
75+
String dataFormat = FormatOptions.json().getType();
7676

7777
// Extract table content to GCS in JSON format
7878
ExtractTableToJson.extractTableToJson(

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/java-bigquery/commit/0e0b7a6d76855922182d20e90fcde0b135e8b6b8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy