khalidmammadov commented on code in PR #40073:
URL: https://github.com/apache/spark/pull/40073#discussion_r1111295831
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStore.scala:
##########
@@ -225,12 +225,12 @@ case class StateStoreCustomTimingMetric(name: String,
desc: String) extends Stat
/**
* An exception thrown when an invalid UnsafeRow is detected in state store.
*/
-class InvalidUnsafeRowException
- extends RuntimeException("The streaming query failed by state format
invalidation. " +
- "The following reasons may cause this: 1. An old Spark version wrote the
checkpoint that is " +
- "incompatible with the current one; 2. Broken checkpoint files; 3. The
query is changed " +
- "among restart. For the first case, you can try to restart the application
without " +
- "checkpoint or use the legacy Spark version to process the streaming
state.", null)
+class InvalidUnsafeRowException(error: String)
+ extends RuntimeException(s"The streaming query failed by state format
invalidation. " +
+ s"The following reasons may cause this: 1. An old Spark version wrote the
checkpoint that is " +
Review Comment:
You don’t need “s” interpolation at each string do you? Last one is enough
IMHO
--
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]