Skip to content

Commit 005dbea

Browse files
committed
renaming variable
1 parent 76aa1d0 commit 005dbea

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/state/metadata/StateMetadataSource.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,17 @@ case class StateMetadataTableEntry(
4646
numPartitions: Int,
4747
minBatchId: Long,
4848
maxBatchId: Long,
49-
operatorProperties: String,
49+
operatorPropertiesJson: String,
5050
numColsPrefixKey: Int) {
5151
def toRow(): InternalRow = {
52-
5352
new GenericInternalRow(
5453
Array[Any](operatorId,
5554
UTF8String.fromString(operatorName),
5655
UTF8String.fromString(stateStoreName),
5756
numPartitions,
5857
minBatchId,
5958
maxBatchId,
60-
UTF8String.fromString(operatorProperties),
59+
UTF8String.fromString(operatorPropertiesJson),
6160
numColsPrefixKey
6261
))
6362
}
@@ -226,7 +225,7 @@ class StateMetadataPartitionReader(
226225
stateStoreMetadata.numPartitions,
227226
if (batchIds.nonEmpty) batchIds.head else -1,
228227
if (batchIds.nonEmpty) batchIds.last else -1,
229-
v2.operatorProperties,
228+
v2.operatorPropertiesJson,
230229
stateStoreMetadata.numColsPrefixKey
231230
)
232231
}

sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/OperatorStateMetadata.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ object OperatorProperties {
115115
case class OperatorStateMetadataV2(
116116
operatorInfo: OperatorInfoV1,
117117
stateStoreInfo: Array[StateStoreMetadataV1],
118-
operatorProperties: String) extends OperatorStateMetadata {
118+
operatorPropertiesJson: String) extends OperatorStateMetadata {
119119
override def version: Int = 2
120120
}
121121

0 commit comments

Comments
 (0)