Skip to content

Commit 399e1c6

Browse files
authored
Fix the logging for pushdown filters (#1419)
* add call and import * review comment * review comment * update log line
1 parent 882aa74 commit 399e1c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/ReadSessionCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public ReadSessionResponse create(
100100
+ "|selectedFields=[{}],"
101101
+ "|filter=[{}]"
102102
+ "|snapshotTimeMillis[{}]",
103-
actualTable.getFriendlyName(),
103+
BigQueryUtil.friendlyTableName(table),
104104
String.join(",", selectedFields),
105105
filter.orElse("None"),
106106
config.getSnapshotTimeMillis().isPresent()

spark-bigquery-dsv2/spark-3.1-bigquery-lib/src/main/java/com/google/cloud/spark/bigquery/v2/Spark31BigQueryScanBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public StructType readSchema() {
9696
@Override
9797
public String description() {
9898
return String.format(
99-
"Reading table [%s], Read session Id : %s ",
100-
ctx.getFullTableName(), ctx.getReadSessionId());
99+
"Reading table [%s], filters [%s], Read session Id : %s ",
100+
ctx.getFullTableName(), getPushdownFilters().orElse(""), ctx.getReadSessionId());
101101
}
102102

103103
@Override

0 commit comments

Comments
 (0)