anishshri-db commented on code in PR #44883:
URL: https://github.com/apache/spark/pull/44883#discussion_r1470249805
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/ValueStateImpl.scala:
##########
@@ -48,8 +48,7 @@ class ValueStateImpl[K, S](
private def encodeKey(): UnsafeRow = {
val keyOption = ImplicitGroupingKeyTracker.getImplicitKeyOption
if (!keyOption.isDefined) {
- throw new UnsupportedOperationException("Implicit key not found for
operation on" +
- s"stateName=$stateName")
+ throw StateStoreErrors.implicitKeyNotFound(stateName = stateName)
Review Comment:
We can just pass `stateName` directly ?
--
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]