AnissaLiu opened a new pull request, #13817:
URL: https://github.com/apache/gluten/pull/13817

   ## Summary
   
   Two-stage local-global window TVF aggregation translation — **stacked on the 
TUMBLE (#13690) and HOP (#13815) planner PRs**: only the last commit is new. 
Open as draft until those land, then this PR rebases to just the two-stage 
delta.
   
   Restores the `StreamExecLocalWindowAggregate` / 
`StreamExecGlobalWindowAggregate` shadows (event-time TUMBLE/HOP; Flink's 
`TwoStageOptimizedWindowAggregateRule` excludes processing-time and session), 
so `table.optimizer.agg-phase-strategy=AUTO/TWO_PHASE` plans run the **native** 
local→global pair instead of the Flink Java fallback. The single-stage shadow 
carries the `localAgg`/`isLocalAgg` slots again (null/false).
   
   ## Tests
   
   - `testTwoStageTumbleMatchesSingleStage` / 
`testTwoStageHopMatchesSingleStage`: force `TWO_PHASE`, assert the plan carries 
`LocalWindowAggregate → GlobalWindowAggregate`, and the results match the 
single-stage runs exactly.
   
   Stack: velox4j `window-agg-twophase` (pins velox 
`window-agg-twophase-upstream`) → velox PR bigo-sg/velox#115-equivalent (the 
two-stage operator PR).
   


-- 
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]

Reply via email to