bogao007 commented on code in PR #50926:
URL: https://github.com/apache/spark/pull/50926#discussion_r2093765107


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkStrategies.scala:
##########
@@ -811,7 +811,7 @@ abstract class SparkStrategies extends 
QueryPlanner[SparkPlan] {
           isStreaming = true,
           hasInitialState,
           planLater(initialState),
-          t.rightAttributes,
+          t.rightAttributes(),

Review Comment:
   Here we need to pass `initialStateGroupingAttrs` as the input of 
`TransformWithStateInPySparkExec` which should not include other initial state 
columns. We only need to add these columns in `references`



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to