anishshri-db commented on code in PR #49277: URL: https://github.com/apache/spark/pull/49277#discussion_r1902071033
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/TransformWithStateVariableUtils.scala: ########## @@ -223,7 +224,7 @@ trait TransformWithStateMetadataUtils extends Logging { case Some(metadata) => metadata match { case v2: OperatorStateMetadataV2 => - Some(new Path(v2.stateStoreInfo.head.stateSchemaFilePath)) + Some(new Path(v2.stateStoreInfo.head.stateSchemaFilePaths.last)) Review Comment: nit: lets move to setting to val first with some comments on why we pick the last entry -- 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