Skip to content
Permalink
Browse files
docs(samples): fix sample issue (#1086)
Fixes b/177938551
  • Loading branch information
stephaniewang526 committed Feb 2, 2021
1 parent 40e016b commit ef669df3c97981664615f0d752f8d988d08c00c9
@@ -43,7 +43,7 @@ public static void main(String[] args) {

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

extractTableToJson(projectId, datasetName, tableName, destinationUri, dataFormat);
}
@@ -72,7 +72,7 @@ public void testExtractTableToJson() {
String tableName = "shakespeare";
String destinationUri = "gs://" + GCS_BUCKET + "/extractTest.json";
// FormatOptions.json() is not "JSON" but "NEWLINE_DELIMITED_JSON"
String dataFormat = FormatOptions.json().toString();
String dataFormat = FormatOptions.json().getType();

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

0 comments on commit ef669df

Please sign in to comment.