anishshri-db commented on code in PR #48000:
URL: https://github.com/apache/spark/pull/48000#discussion_r1746064973


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/state/utils/SchemaUtil.scala:
##########
@@ -150,8 +264,63 @@ object SchemaUtil {
             .add("partition_id", IntegerType)
         }
 
+      case MapState =>
+        val groupingKeySchema = SchemaUtil.getSchemaAsDataType(
+          stateStoreColFamilySchema.keySchema, "key")
+        val userKeySchema = stateStoreColFamilySchema.userKeyEncoderSchema.get
+        val valueMapSchema = new MapType(
+          keyType = userKeySchema,
+          valueType = stateStoreColFamilySchema.valueSchema,
+          valueContainsNull = false

Review Comment:
   Is this required ?



-- 
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]

Reply via email to