ericm-db commented on code in PR #49277:
URL: https://github.com/apache/spark/pull/49277#discussion_r1913589136


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/state/StateDataSource.scala:
##########
@@ -231,11 +234,17 @@ class StateDataSource extends TableProvider with 
DataSourceRegister with Logging
           s"for state variable $stateVarName in operator 
${sourceOptions.operatorId}")
         val stateVarInfo = stateVarInfoList.head
         transformWithStateVariableInfoOpt = Some(stateVarInfo)
-        val schemaFilePath = new 
Path(storeMetadataEntry.stateSchemaFilePath.get)
-        Some(schemaFilePath)
+        schemaFilePaths = storeMetadataEntry.stateSchemaFilePaths
+        val stateSchemaMetadata = 
StateSchemaMetadata.createStateSchemaMetadata(
+          sourceOptions.stateCheckpointLocation.toString,
+          hadoopConf,
+          schemaFilePaths
+        )
+        stateSchemaProvider = Some(new 
InMemoryStateSchemaProvider(stateSchemaMetadata))

Review Comment:
   Yeah exactly - thought it would be fine in this case.



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to