Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Nov 18, 2024
1 parent a40f498 commit b9afb4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,4 @@ public interface StreamDataTableScan extends DataTableScan, StreamTableScan {

/** Restore from checkpoint next snapshot id with scan kind. */
void restore(@Nullable Long nextSnapshotId, boolean scanAllSnapshot);

@Override
default StreamDataTableScan dropStats() {
// do nothing, should implement this if need
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ private[spark] trait StreamHelper {

var lastTriggerMillis: Long

private lazy val streamScan: StreamDataTableScan = table.newStreamScan().dropStats()
private lazy val streamScan: StreamDataTableScan =
table.newStreamScan().dropStats().asInstanceOf[StreamDataTableScan]

private lazy val partitionSchema: StructType =
SparkTypeUtils.fromPaimonRowType(TypeUtils.project(table.rowType(), table.partitionKeys()))
Expand Down

0 comments on commit b9afb4c

Please sign in to comment.