AnissaLiu commented on issue #13687:
URL: https://github.com/apache/gluten/issues/13687#issuecomment-7089425668

   > [#10898](https://github.com/apache/gluten/pull/10898) we have submitted a 
pr to support window tvf aggregate (nexmark q12) before, so I want to know what 
you plan to do different here? [@AnissaLiu](https://github.com/AnissaLiu)
   
   Thanks for the pointer. #10898 (and its issue #10246) landed the first slice 
- processing-time TUMBLE for nexmark q12, translated as a SINGLE-step 
aggregation - and this PR builds directly on it: the shadow files modified here 
carry that code as the base (the ArithmeticUtils.gcd / useDaylightSaving 
parameter passing it introduced is replaced in this PR by KeyedStateSpec + IANA 
shift-timezone resolution).
   
   What this PR adds on top:
   
   - Event-time semantics for TUMBLE / HOP / SESSION (the base TODO literally 
read "support more window types"): watermark-driven firing, Flink's two-phase 
late-data dropping (a slice is dropped only when every window owning it has 
fired), DST-correct shift time zones, count-star empty-window suppression 
(Flink WindowIsEmptySupplier), and the HOP covered-slice heap merge 
(SharedSliceAssigner#mergeSlices).
   - Keyless windows (GROUP BY window_start/window_end only) and FILTER masks 
on window aggregates.
   - Two-stage local-global execution where Flink's rule fires (event-time, 
non-SESSION): a kPartial local operator with per-(key, sliceEnd) accumulators 
that flushes partials before forwarding the watermark, and a kFinal global 
whose slice end comes from the trailing windowEnd column.
   - Exact-match verification: output layouts follow Flink's planner-derived 
types verbatim; 17/17 scenarios verified multiset-exact against native Flink 
1.19.2 (late rows, empty windows, HOP overlap/stop-chain, keyless, composite 
keys, parallelism 4, FILTER, plus a nexmark 10M closure of exactly 8,900,000), 
backed by 40 operator-level unit tests. The base's other TODO ("velox window 
not equal to flink window") is removed on that evidence.


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