Skip to content

Commit

Permalink
docs(samples): fix sample issue (#1086)
Browse files Browse the repository at this point in the history
Fixes b/177938551
  • Loading branch information
stephaniewang526 committed Feb 2, 2021
1 parent 40e016b commit ef669df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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);
}
Expand Down
Expand Up @@ -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(
Expand Down

0 comments on commit ef669df

Please sign in to comment.