ericm-db commented on code in PR #49277: URL: https://github.com/apache/spark/pull/49277#discussion_r1914319475
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/statefulOperators.scala: ########## @@ -233,6 +234,33 @@ trait StateStoreWriter } } + def stateSchemaList( + stateSchemaValidationResults: List[StateSchemaValidationResult], + oldMetadata: Option[OperatorStateMetadata]): List[List[String]] = { + + def getExistingStateInfo(metadata: OperatorStateMetadataV2): List[String] = { + val ssInfo = metadata.stateStoreInfo.head + ssInfo.stateSchemaFilePaths + } + + val validationResult = stateSchemaValidationResults.head + + oldMetadata match { + case Some(v2: OperatorStateMetadataV2) => + val oldSchemaPaths = getExistingStateInfo(v2) + if (validationResult.evolvedSchema) { + List(oldSchemaPaths ++ List(validationResult.schemaPath)) Review Comment: Will address in a follow-up change -- 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