Skip to content

Commit

Permalink
also update the name of StateTable
Browse files Browse the repository at this point in the history
  • Loading branch information
eason-yuchen-liu committed Jun 21, 2024
1 parent 3f266c1 commit 2eb6646
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,21 @@ class StateTable(
}

override def name(): String = {
val desc = s"StateTable " +
var desc = s"StateTable " +
s"[stateCkptLocation=${sourceOptions.stateCheckpointLocation}]" +
s"[batchId=${sourceOptions.batchId}][operatorId=${sourceOptions.operatorId}]" +
s"[storeName=${sourceOptions.storeName}]"

if (sourceOptions.joinSide != JoinSideValues.none) {
desc + s"[joinSide=${sourceOptions.joinSide}]"
} else {
desc
desc += s"[joinSide=${sourceOptions.joinSide}]"
}
if (sourceOptions.snapshotStartBatchId.isDefined) {
desc += s"[snapshotStartBatchId=${sourceOptions.snapshotStartBatchId}]"
}
if (sourceOptions.snapshotPartitionId.isDefined) {
desc += s"[snapshotPartitionId=${sourceOptions.snapshotPartitionId}]"
}
desc
}

override def capabilities(): util.Set[TableCapability] = CAPABILITY
Expand Down

0 comments on commit 2eb6646

Please sign in to comment.