Repository navigation
[GLUTEN-13733][FLINK][VL] Translate the Flink Deduplicate operator to velox - #13735
Open
zhang-jianq wants to merge 1 commit into
Open
zhang-jianq wants to merge 1 commit into
zhang-jianq wants to merge 1 commit into
Conversation
This was referenced Nov 23, 2026
… velox Translate Flink Deduplicate to the velox stateful backend: - StreamExecDeduplicate: keyed/global, rowtime/proc-time, keep-first/keep-last, generateUpdateBefore / generateInsert gating, and fail-loud rejection of mini-batch compact-changes. - GlutenOneInputOperator persists native operator checkpoint records in ListState<byte[]> and passes them back on initializeState; it constructs KeyedStateBackendParameters with the subtask's key-group range so native state ownership matches the key-group shuffle. - GlutenSourceFunction / GlutenStreamingFileWriterOperator use the same byte[][] checkpoint channel. - GlutenStatefulRecordSerializer writes raw Presto frame bytes with snapshot version 2; v1 Base64 snapshots are rejected fail-loud. - Pin gluten-flink/velox4j-ref.txt at the companion velox4j dedup commit; CI clones the matching velox4j branch until the change lands upstream. Tests: GlutenStatefulRecordSerializerTest 5 cases, GlutenStreamingFileWriterOperatorTest 2 cases, DeduplicateFunctionsTest 9 cases; e2e dual-run vs native Flink 8/8 jobs FINISHED, 8/8 normalized changelog match (4/8 exact; the remaining four differ only by the print sink's TIMESTAMP(3) `.000` suffix). Signed-off-by: zhangjianqiu <1726110962@qq.com>
zhang-jianq
force-pushed
the
Deduplicate_Flink
branch
from
November 24, 2026 01:47
331c091 to
22f7925
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are proposed in this pull request?
Fixes GLUTEN-13733 (companion bigo-sg/velox#106, bigo-sg/velox4j#84):
StreamExecDeduplicatetranslates keyed/global Deduplicate with rowtime/proc-time, keep-first/keep-last, and the FlinkgenerateUpdateBefore/generateInsertchangelog gating. Mini-batch with compact-changes is rejected fail-loud.GlutenOneInputOperatorpersists native operator checkpoint records inListState<byte[]>and passes them back oninitializeState; it constructsKeyedStateBackendParametersfrom the subtask's runtime key-group range.GlutenSourceFunctionandGlutenStreamingFileWriterOperatoruse the samebyte[][]checkpoint channel.GlutenStatefulRecordSerializerwrites raw Presto frame bytes with snapshot version 2; v1 Base64 snapshots fail loud.gluten-flink/velox4j-ref.txtpins360bbcacec7b1a8b9963a5193aefcc53f8e83270, the head of companion bigo-sg/velox4j#84; CI clones the matching velox4j branch until the dependent PRs merge.How was this patch tested?
DeduplicateFunctionsTest: 9/9.GlutenStatefulRecordSerializerTest: 5/5 (byte[] wire, old Base64 fail-loud, v1/v2 snapshot compatibility).GlutenStreamingFileWriterOperatorTest: 2/2 on thebyte[][]channel.TIMESTAMP(3).000suffix; after removing the suffix the final result sets are identical.