HeartSaVioR commented on code in PR #47528: URL: https://github.com/apache/spark/pull/47528#discussion_r1703704102
########## sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/state/metadata/StateMetadataSource.scala: ########## @@ -104,7 +104,15 @@ class StateMetadataTable extends Table with SupportsRead with SupportsMetadataCo if (!options.containsKey("path")) { throw StateDataSourceErrors.requiredOptionUnspecified(PATH) } - new StateMetadataScan(options.get("path")) + + val checkpointLocation = options.get("path") + var batchId = Option(options.get("batchId")).map(_.toLong) Review Comment: I'm OK either way, but if you want to address this as follow-up PR, let's explicitly mention about the plan. -- 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