Skip to content

Commit

Permalink
solve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
eason-yuchen-liu committed Jul 2, 2024
1 parent 39d0b17 commit 261c671
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class StatePartitionReaderFactory(
val stateStoreInputPartition = partition.asInstanceOf[StateStoreInputPartition]
if (stateStoreInputPartition.sourceOptions.readChangeFeed) {
new StateStoreChangeDataPartitionReader(storeConf, hadoopConf,
stateStoreInputPartition, schema)
partition.asInstanceOf[StateStoreInputPartition], schema, stateStoreMetadata)
} else {
new StatePartitionReader(storeConf, hadoopConf,
stateStoreInputPartition, schema)
partition.asInstanceOf[StateStoreInputPartition], schema, stateStoreMetadata)
}
}
}
Expand Down Expand Up @@ -146,10 +146,12 @@ class StatePartitionReader(
}

class StateStoreChangeDataPartitionReader(
storeConf: StateStoreConf,
hadoopConf: SerializableConfiguration,
partition: StateStoreInputPartition,
schema: StructType) extends StatePartitionReader(storeConf, hadoopConf, partition, schema) {
storeConf: StateStoreConf,
hadoopConf: SerializableConfiguration,
partition: StateStoreInputPartition,
schema: StructType,
stateStoreMetadata: Array[StateMetadataTableEntry])
extends StatePartitionReader(storeConf, hadoopConf, partition, schema, stateStoreMetadata) {

private lazy val changeDataReader: StateStoreChangeDataReader = {
if (!provider.isInstanceOf[SupportsFineGrainedReplay]) {
Expand Down

0 comments on commit 261c671

Please sign in to comment.