Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit ff38338

Browse files
author
Praful Makani
committed
docs(samples): update code
1 parent 9498fb4 commit ff38338

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateRedshiftTransfer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static void main(String[] args) throws IOException {
3535
// TODO(developer): Replace these variables before running the sample.
3636
final String projectId = "MY_PROJECT_ID";
3737
String datasetId = "MY_DATASET_ID";
38+
String datasetRegion = "US";
3839
String jdbcUrl = "MY_JDBC_URL_CONNECTION_REDSHIFT";
3940
String dbUserName = "MY_USERNAME";
4041
String dbPassword = "MY_PASSWORD";
@@ -58,6 +59,7 @@ public static void main(String[] args) throws IOException {
5859
TransferConfig transferConfig =
5960
TransferConfig.newBuilder()
6061
.setDestinationDatasetId(datasetId)
62+
.setDatasetRegion(datasetRegion)
6163
.setDisplayName("Your Redshift Config Name")
6264
.setDataSourceId("redshift")
6365
.setParams(Struct.newBuilder().putAllFields(params).build())

0 commit comments

Comments
 (0)