tdas commented on a change in pull request #33336:
URL: https://github.com/apache/spark/pull/33336#discussion_r669987794
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkStrategies.scala
##########
@@ -671,9 +671,18 @@ abstract class SparkStrategies extends
QueryPlanner[SparkPlan] {
case logical.MapGroups(f, key, value, grouping, data, objAttr, child) =>
execution.MapGroupsExec(f, key, value, grouping, data, objAttr,
planLater(child)) :: Nil
case logical.FlatMapGroupsWithState(
- f, key, value, grouping, data, output, _, _, _, timeout, _, _, _, _,
_, child) =>
- execution.MapGroupsExec(
- f, key, value, grouping, data, output, timeout, planLater(child)) ::
Nil
+ f, key, value, grouping, data, output, stateEncoder, outputMode,
+ isFlatMapGroupsWithState, timeout, hasInitialState,
initialStateGroupAttrs,
+ initialStateDataAttrs, initialStateDeserializer, initialState,
child) =>
+ if (hasInitialState) {
+ execution.MapGroupsWithInitialStateExec(
Review comment:
do you need a separate physical plan? Can you implement this using
CoGroupExec
--
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]