anishshri-db commented on code in PR #46856:
URL: https://github.com/apache/spark/pull/46856#discussion_r1626385375
##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingAggregationSuite.scala:
##########
@@ -782,11 +782,12 @@ class StreamingAggregationSuite extends
StateStoreMetricsTest with Assertions {
testStream(aggregated, Update())(
StartStream(checkpointLocation = tempDir.getAbsolutePath),
AddData(inputData, 21),
- ExpectFailure[SparkException] { e =>
+ ExpectFailure[
+
org.apache.spark.sql.execution.streaming.state.StateStoreValueSchemaNotCompatible]
{ e =>
Review Comment:
Done
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -3730,6 +3730,12 @@
],
"sqlState" : "42K06"
},
+ "STATE_STORE_KEY_SCHEMA_NOT_COMPATIBLE" : {
+ "message" : [
+ "Provided key schema does not match existing state key schema. Please
check number and type of fields. Existing key_schema=<storedKeySchema> and new
key_schema=<newKeySchema>."
Review Comment:
Done
--
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]