Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkitCLI committed Nov 20, 2024
1 parent e26e7d2 commit be2b4c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public void validateDataTransferredFromBigQueryToBigQueryMultiTableInOneTableIsE
throws IOException, InterruptedException {
boolean recordsMatched = BigQueryMultiTableValidation.
validateBQToBigQueryMultiTable(Collections.singletonList(PluginPropertyUtils.pluginProp("bqSourceTable")),
Collections.singletonList("bqmtTargetTableTabA"));
Collections.singletonList(PluginPropertyUtils.pluginProp
("bqmtTargetTableTabA")));
Assert.assertTrue("Value of records transferred to the BQ sink should be equal to the value " +
"of the records in the source table", recordsMatched);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ public static void createTwoSourceBQTable() throws IOException, InterruptedExcep
try {
io.cdap.e2e.utils.BigQueryClient.getSoleQueryResult("INSERT INTO `" + datasetName + "." + bqSourceTable2 + "` " +
"(ID, tablename, Price, Customer_Exists)" +
"VALUES" + "(3, 'tabB', 0.5, true )");
"VALUES" + "(3, 'tabsB', 0.5, true )");
} catch (NoSuchElementException e) {
// Insert query does not return any record.
// Iterator on TableResult values in getSoleQueryResult method throws NoSuchElementException
Expand All @@ -1442,7 +1442,7 @@ public static void createTwoSourceBQTable() throws IOException, InterruptedExcep
try {
io.cdap.e2e.utils.BigQueryClient.getSoleQueryResult("INSERT INTO `" + datasetName + "." + bqSourceTable + "` " +
"(ID, tablename, Price, Customer_Exists)" +
"VALUES" + "(1, 'tabA', 2.5, true )");
"VALUES" + "(1, 'tabsA', 2.5, true )");
} catch (NoSuchElementException e) {
// Insert query does not return any record.
// Iterator on TableResult values in getSoleQueryResult method throws NoSuchElementException
Expand Down
6 changes: 3 additions & 3 deletions src/e2e-test/resources/pluginParameters.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
projectId=cdf-athena
datasetprojectId=cdf-athena
dataset=testing_bqmt
dataset=test_bq_sampledataset
wrongSourcePath=gs://00000000-e2e-0014a44f-81be-4501-8360-0ddca192492
serviceAccountType=filePath
serviceAccount=auto-detect
Expand Down Expand Up @@ -350,8 +350,8 @@ dsExpectedFile=testdata/BQValidationExpectedFiles/datastoreexpectedfile
## BQMT-PLUGIN-PROPERTIES-START
bqmtCreateTableQueryFile=testdata/BigQuery/BqmtCreateTableQuery.txt
bqmtInsertDataQueryFile=testdata/BigQuery/BqmtInsertDataQuery.txt
bqmtTargetTableTabA=tabA
bqmtTargetTableTabB=tabB
bqmtTargetTableTabA=tabsA
bqmtTargetTableTabB=tabsB
## BQMT-PLUGIN-PROPERTIES-END

##CLOUDBIGTABLE-PLUGIN-PROPERTIES-START
Expand Down

0 comments on commit be2b4c8

Please sign in to comment.