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

Commit

Permalink
refactor(samples): update params in teradata transfer config (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Praful Makani committed Nov 17, 2020
1 parent 646f1d6 commit 133a6d5
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -36,14 +36,14 @@ public static void main(String[] args) throws IOException {
final String projectId = "MY_PROJECT_ID";
String datasetId = "MY_DATASET_ID";
String databaseType = "Teradata";
String bucketLocation = "gs://cloud-sample-data/";
String bucket = "cloud-sample-data";
String databaseName = "MY_DATABASE_NAME";
String tableNamePatterns = "*";
String serviceAccount = "MY_SERVICE_ACCOUNT";
String schemaFilePath = "/your-schema-path";
Map<String, Value> params = new HashMap<>();
params.put("database_type", Value.newBuilder().setStringValue(databaseType).build());
params.put("location", Value.newBuilder().setStringValue(bucketLocation).build());
params.put("bucket", Value.newBuilder().setStringValue(bucket).build());
params.put("database_name", Value.newBuilder().setStringValue(databaseName).build());
params.put("table_name_patterns", Value.newBuilder().setStringValue(tableNamePatterns).build());
params.put("agent_service_account", Value.newBuilder().setStringValue(serviceAccount).build());
Expand Down

0 comments on commit 133a6d5

Please sign in to comment.