srielau commented on code in PR #58549:
URL: https://github.com/apache/spark/pull/58549#discussion_r4000292179
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/python/streaming/TransformWithStateInPySparkStateServer.scala:
##########
@@ -80,6 +82,14 @@ class TransformWithStateInPySparkStateServer(
import PythonResponseWriterUtils._
+ private def validateStateSchema(schema: StructType, schemaKind: String):
Unit = {
+ if (CharVarcharUtils.hasCharVarchar(schema)) {
+ throw QueryCompilationErrors.invalidPythonStateSchema(schema, schemaKind)
+ }
+ }
+
+ validateStateSchema(groupingKeySchema, "grouping key")
Review Comment:
Follow-up in a1af6a2b1f1: added the matching executor compute regression. It
constructs the production runner with a nested CHAR grouping key and verifies
the classed error is thrown before state-server initialization. Both driver and
executor preflight tests pass.
--
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]