sunshone commented on PR #13693: URL: https://github.com/apache/gluten/pull/13693#issuecomment-7154613738
> Thanks — the FirstN/Top1/TopN dispatch translation, the nulls-first flags and the PROCTIME() mapping line up with Flink's StreamExecRank, and the serializer snapshot versioning is a good call. > > 1. Native keyed state is carried through a non-keyed operator-state ListState, which silently drops key groups on scale-up restores; please move to a keyed transformation backed by Flink's keyed-state SPI - details in the line comment on GlutenOneInputOperator.java. Items 1 and 3 are must-fix. > 2. The translation-time type guards skip the non-key input columns that the native row storage also rejects; details in the line comment on StreamExecRank.java. > 3. Please revert the StreamExecExchange changes - they alter a shared path for every query and only exist because of item 1; details in the line comment on StreamExecExchange.java. > Note on the global rank shape: the sentinel key channel built here pairs with the velox-side sentinel; please keep it on whatever resolution lands on the velox side (the design comment is there). Thank you for the careful review. Item 1 adopts the documented interim path: the native checkpoint records now persist through Flink union-list state at all three persistence sites (operator, source, file writer), and the native restore skips shards that do not overlap the backend's key-group range - with union redistribution every subtask receives every writer's shard, so rescaling restores completely at any parallelism (each subtask rebuilds exactly its own key groups), verified by the rescale and union-restore unit tests. The keyed-state integration (a KeyedStateBackend over the native backend, where Flink owns the key-group sharding and rescaling) is stated as the follow-up in the operator code and in the PR description. On the requested fail-loud guard on parallelism changes: with union redistribution the restore is complete by construction at any rescale, so such a guard would reject correct restores; the union mode plus the native range-filtering restore is the interim guar antee. Items 2 and 3 are addressed in the line comments below - the type guard now covers every input column, and the shared-path exchange guard is restored with one evidence-backed carve-out. -- 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]
