[kv] Support first row merge engine#240
Merged
wuchong merged 4 commits intoapache:mainfrom Jan 5, 2025
Merged
Conversation
wuchong
requested changes
Dec 21, 2024
Member
wuchong
left a comment
There was a problem hiding this comment.
We need add validations for FlinkTableSink that first_row table doesn't supports UPDATE/DELETE and partial-update! And add tests to verify that.
Contributor
Author
|
@wuchong Comments addressed... |
wuchong
reviewed
Dec 23, 2024
| if (mergeEngine != null && mergeEngine == ConfigOptions.MergeEngine.FIRST_ROW) { | ||
| throw new UnsupportedOperationException( | ||
| String.format( | ||
| "Table %s is with merge engine '%s'. Table with '%s' merge engine doesn't support DELETE and UPDATE statements.", |
Member
There was a problem hiding this comment.
Table xxx uses the 'first_row' merge engine, which does not support DELETE or UPDATE statements.
| } | ||
|
|
||
| @Test | ||
| void testUnsupportedDeleteAndUpdateStmtOnFirstRowMergeEngine() { |
Comment on lines
+149
to
+151
| key(ConfigOptions.TABLE_MERGE_ENGINE.key()) | ||
| .enumType(ConfigOptions.MergeEngine.class) | ||
| .noDefaultValue()); |
wwj6591812
reviewed
Dec 24, 2024
e64b962 to
9de11b8
Compare
Contributor
Author
|
@wuchong Comments addressed again... |
9de11b8 to
1353756
Compare
wuchong
approved these changes
Jan 5, 2025
Member
wuchong
left a comment
There was a problem hiding this comment.
LGTM. @luoyuxia I appended a commit to improve the config operations:
- Move
MergeEngineout ofConfigOptions, as it is very widely used in the code base, just likeKvFormat. - use
toFlinkOptionfor quick/easy conversion from Fluss ConfigOption to Flink ConfigOption, avoid duplicate definition inFlinkTableFactory.
2 tasks
Member
|
The CI is passed. I will merge it... @luoyuxia please check the commit I appended. |
1 similar comment
Member
|
The CI is passed. I will merge it... @luoyuxia please check the commit I appended. |
2 tasks
ZmmBigdata
pushed a commit
to ZmmBigdata/fluss
that referenced
this pull request
Jun 20, 2025
Ugbot
pushed a commit
to Ugbot/fluss
that referenced
this pull request
Apr 26, 2026
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.
Purpose
Linked issue: close #133
Introduce first row merge engine for primary key table
Tests
FlussTableITCase#testFirstRowMergeEngine
FlinkTableSinkITCase#testFirstRowMergeEngine
API and Format
N/A
Documentation
I'd like to complete the document in another pr #241 since after introduce merge engine, we may need to refactor the document struture about primary key table.