Skip to content

Commit 97573b5

Browse files
docs(samples): fix typo (#884)
* docs(samples): fix typo * nit
1 parent 9f48a91 commit 97573b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public static void main(String[] args) throws InterruptedException {
4343
// Export result of query to find states starting with 'W'
4444
String query =
4545
String.format(
46-
"EXPORT DATA WITH CONNECTION %s AS SELECT * FROM %s.%s.%s WHERE name LIKE 'W%%'",
46+
"EXPORT DATA WITH CONNECTION `%s` OPTIONS(uri='%s', format='%s') "
47+
+ "AS SELECT * FROM %s.%s.%s WHERE name LIKE 'W%%'",
4748
connectionName, destinationUri, format, projectId, datasetName, externalTableName);
4849
exportQueryResultsToS3(query);
4950
}

0 commit comments

Comments
 (0)