anishshri-db commented on code in PR #46791:
URL: https://github.com/apache/spark/pull/46791#discussion_r1619491270
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStore.scala:
##########
@@ -396,6 +396,12 @@ object StateStoreProvider {
*/
def create(providerClassName: String): StateStoreProvider = {
val providerClass = Utils.classForName(providerClassName)
+ if (!classOf[StateStoreProvider].isAssignableFrom(providerClass)) {
+ throw new SparkException(
+ errorClass = "INVALID_STATE_STORE_PROVIDER",
Review Comment:
Lets use the `STATE_STORE_` prefix here
so maybe rename as `STATE_STORE_INVALID_PROVIDER`
--
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]