Skip to content

Commit

Permalink
Spark 3.4: Set metricsReporter for more scan types (#8445)
Browse files Browse the repository at this point in the history
Fixes #8444.
  • Loading branch information
wForget committed Sep 14, 2023
1 parent 0da896d commit 8fcc891
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ private Scan buildIncrementalAppendScan(long startSnapshotId, Long endSnapshotId
.fromSnapshotExclusive(startSnapshotId)
.caseSensitive(caseSensitive)
.filter(filterExpression())
.project(expectedSchema);
.project(expectedSchema)
.metricsReporter(metricsReporter);

if (endSnapshotId != null) {
scan = scan.toSnapshot(endSnapshotId);
Expand Down Expand Up @@ -559,7 +560,8 @@ public Scan buildChangelogScan() {
.newIncrementalChangelogScan()
.caseSensitive(caseSensitive)
.filter(filterExpression())
.project(expectedSchema);
.project(expectedSchema)
.metricsReporter(metricsReporter);

if (startSnapshotId != null) {
scan = scan.fromSnapshotExclusive(startSnapshotId);
Expand Down Expand Up @@ -629,7 +631,8 @@ public Scan buildMergeOnReadScan() {
.useSnapshot(snapshotId)
.caseSensitive(caseSensitive)
.filter(filterExpression())
.project(expectedSchema);
.project(expectedSchema)
.metricsReporter(metricsReporter);

scan = configureSplitPlanning(scan);

Expand Down Expand Up @@ -665,7 +668,8 @@ public Scan buildCopyOnWriteScan() {
.ignoreResiduals()
.caseSensitive(caseSensitive)
.filter(filterExpression())
.project(expectedSchema);
.project(expectedSchema)
.metricsReporter(metricsReporter);

scan = configureSplitPlanning(scan);

Expand Down

0 comments on commit 8fcc891

Please sign in to comment.