ericm-db commented on code in PR #48401:
URL: https://github.com/apache/spark/pull/48401#discussion_r1816082437


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/HDFSBackedStateStoreProvider.scala:
##########
@@ -250,6 +271,41 @@ private[sql] class HDFSBackedStateStoreProvider extends 
StateStoreProvider with
         colFamilyName: String): Unit = {
       throw StateStoreErrors.unsupportedOperationException("merge", 
providerName)
     }
+
+    override def put(key: Array[Byte], value: Array[Byte], colFamilyName: 
String): Unit = {
+      throw StateStoreErrors.unsupportedOperationException(
+        "Byte Array put", "HDFSStateStore")

Review Comment:
   The unsupportedOperationException already says something to this effect. I 
can either throw a simple UnsupportedOperationException, or conform with the 
createColFamilyIfAbsent method in this StateStoreProvider which uses 
`StateStoreErrors.unsupportedOperationException`



-- 
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]

Reply via email to