zhang-jianq opened a new issue, #13733:
URL: https://github.com/apache/gluten/issues/13733

   ### Description
   
   **Description**:
   
   Proposal: support the Flink Deduplicate operator in GlutenFlink, so 
deduplicate queries run on the velox stateful backend and produce results 
equivalent to native Flink.
   
   Related context: the rank-family work in 
[GLUTEN-13615](https://github.com/apache/gluten/issues/13615) uses the same 
stateful execution framework, but Deduplicate is tracked separately because it 
keeps one representative row per key instead of a top-N list.
   
   Scope:
   
   - Keyed and global Deduplicate.
   - Rowtime keep-last / keep-first, including equal-timestamp tie behavior.
   - Proc-time keep-last / keep-first, including same-value suppression.
   - Changelog kinds (`+I`, `-U`, `+U`) matching native Flink, with 
`generateUpdateBefore` / `generateInsert` gating.
   - Append-only input; non-INSERT input should fail clearly.
   - Null keys should form one group.
   - Runtime proc-time / rowtime representation should normalize to the 
declared output type.
   - The final result set and changelog should match native Flink for the 
supported shapes.
   
   State and recovery expectations:
   
   - State size should grow with the number of distinct keys, not with the 
number of input batches.
   - Each key keeps only its representative row.
   - Checkpoint / restore should preserve state and key-group ownership at the 
supported parallelism.
   - A resumed job should not lose or duplicate keys compared with a continuous 
run.
   
   Acceptance criteria:
   
   - Unit tests cover the supported shapes and edge cases: rowtime/proc-time, 
keep-first/keep-last, keyed/global, equal timestamps, null keys, empty batches, 
and checkpoint/restore.
   - Native-vs-Gluten e2e dual-run covers the dedup matrix; jobs reach FINISHED 
and changelog folding matches after normalization.
   - Unsupported configurations fail with a clear error rather than silently 
changing semantics.
   
   Known limitations / out of scope:
   
   - TTL / state retention is off by design.
   - Mini-batch with compact-changes is rejected; Gluten does not implement 
compact-changes.
   - UpdateFast / Retract input strategies are not supported.
   
   **Gluten version**:
   
   main branch (workspace gluten-flink built as `1.9.0-SNAPSHOT`)
   
   ### Gluten version
   
   None


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