AnissaLiu commented on PR #13690:
URL: https://github.com/apache/gluten/pull/13690#issuecomment-7130943393

   Thanks for the thorough review — all three points are addressed and pushed 
(the PR head is updated; the CI jobs are rerunning on it).
   
   1. **velox4j-ref pin / flink-test job**: The stale cb5ca6c pin was a 
leftover from the integration line that predated the force-push history of 
velox4j#81 — exactly the breakage you observed (`git reset --hard` exits 128 on 
the bigo-sg clone). Fixed both sides: `gluten-flink/velox4j-ref.txt` now pins 
the current velox4j#81 head `0ecee593ff8735a90373ac0728a2d02ad6296892` as a 
full sha with the file's trailing newline, and the flink.yml velox4j clone 
temporarily points at the PR branch (`AnissaLiu/velox4j`, 
`window-agg-upstream`, the #13670 development pattern). Once velox4j#81 lands 
we revert the clone to `bigo-sg/gluten-20260829` and move the pin to the merged 
commit.
   
   2. **spotless (import order)**: `mvn spotless:apply` has been run on the 
planner module — the diff on StreamExecGlobalWindowAggregate / 
StreamExecLocalWindowAggregate is pure import reordering; `spotless:check` now 
passes on both files. (Our local preflight had been building with spotless 
skipped — that hole is closed so this class of miss can't recur.)
   
   3. **SQL-level tests**: Added `WindowTVFAggregationTest` (10 cases, extends 
`GlutenStreamingTestBase`), covering exactly your list:
   - single-stage event-time TUMBLE: slice partitioning + end-of-input firing 
of the trailing window, plus a dedicated **late-drop** case on the legacy 
SourceFunction runtime (row-by-row emission makes the two-phase late check 
observable — [0,5) fires at the 5s watermark and the trailing 2s row is 
dropped);
   - HOP covered-slice merge + chain continuation (7 windows, values verified 
against native Flink);
   - SESSION gap merge ([1, 3.5) in-burst merge + separate [6, 8) session);
   - proc-time TUMBLE firing on the wall-clock tick (per-key totals asserted — 
boundaries are wall-clock dependent);
   - **two-stage local->global** for event-time TUMBLE and HOP: the plan is 
asserted to contain `LocalWindowAggregate` + `GlobalWindowAggregate` and 
outputs are asserted equal to the single-stage expectations;
   - keyless windows (GROUP BY window_start/window_end only — the wrapped key 
channel, no key column in the projection);
   - FILTER mask, including the zero-count window emission a filtered COUNT 
requires (not a count star — Flink WindowIsEmptySupplier semantics);
   - the update-stream rejection: a changelog-mode values source (`+I`/`+U`) 
drives the TVF input and the translation-time TableException ("update-stream") 
is asserted.
   
   All 10 pass locally together with the WindowUtilsTest cases (14/14). One 
harness note: the unified values runtime (`runtime-source=NewSource`) emits 
bounded data as a burst and fires trailing windows via the end-of-input 
watermark, while the legacy SourceFunction runtime emits row-by-row without an 
end-of-input watermark — the two runtimes complement each other and the test 
comments document which scenarios ride on which runtime and why.
   
   On the keyless note: understood — `Utils.wrapKeylessInput` and the 
velox-side wrap are two halves of one contract; whatever lands on the velox 
side, this PR keeps the paired form (`$keyless_key` appended at the tail, keys 
on the trailing channel), and we'll reconcile the two sides together when the 
velox review resolves.


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