eason-yuchen-liu opened a new pull request, #46791: URL: https://github.com/apache/spark/pull/46791
### What changes were proposed in this pull request? This PR adds a validity check to the StateStoreProvider class before calling its constructor. A new runtime exception was created to report this issue. ### Why are the changes needed? This is a security improvement to a user-facing API. Users are only allowed to use class that extends `org.apache.spark.sql.execution.streaming.state.StateStoreProvider` as StateStoreProvider. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? This PR comes with a new test to test that invalid class cannot pass the security check. The fact that other tests in StreamingQuerySuite can pass implies that valid class can pass the check. ### Was this patch authored or co-authored using generative AI tooling? No. -- 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]
