Skip to content

Commit

Permalink
fix logging (GoogleCloudDataproc#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkarve15 authored Aug 29, 2023
1 parent 365d6fd commit 566d2b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -796,17 +796,17 @@ public TableInfo call() {
}

TableInfo createTableFromQuery() {
log.debug("destinationTable is %s", destinationTable);
log.debug("destinationTable is {}", destinationTable);
JobInfo jobInfo =
JobInfo.of(
jobConfigurationFactory
.createQueryJobConfigurationBuilder(querySql, additionalQueryJobLabels)
.setDestinationTable(destinationTable)
.build());

log.debug("running query %s", jobInfo);
log.debug("running query {}", jobInfo);
Job job = waitForJob(bigQueryClient.create(jobInfo));
log.debug("job has finished. %s", job);
log.debug("job has finished. {}", job);
if (job.getStatus().getError() != null) {
throw BigQueryUtil.convertToBigQueryException(job.getStatus().getError());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ TableInfo getActualTable(
if (isInputTableAView(table)) {
// get it from the view
String querySql = bigQueryClient.createSql(table.getTableId(), requiredColumns, filters);
log.debug("querySql is %s", querySql);
log.debug("querySql is {}", querySql);
return bigQueryClient.materializeViewToTable(
querySql, table.getTableId(), config.getMaterializationExpirationTimeInMinutes());
} else {
Expand Down

0 comments on commit 566d2b4

Please sign in to comment.