jingz-db commented on code in PR #48000:
URL: https://github.com/apache/spark/pull/48000#discussion_r1746128054
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/state/StatePartitionReader.scala:
##########
@@ -68,10 +68,15 @@ abstract class StatePartitionReaderBase(
stateVariableInfoOpt: Option[TransformWithStateVariableInfo],
stateStoreColFamilySchemaOpt: Option[StateStoreColFamilySchema])
extends PartitionReader[InternalRow] with Logging {
- protected val keySchema = SchemaUtil.getSchemaAsDataType(
- schema, "key").asInstanceOf[StructType]
- protected val valueSchema = SchemaUtil.getSchemaAsDataType(
- schema, "value").asInstanceOf[StructType]
+ protected val keySchema = {
Review Comment:
The keySchema should be the same (we cannot use dummy schema on key row),
but yes, the valueSchema will change a bit after list state PR is merged.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]