[core] Support aggregation for partial-update sequence groups - #9319
Closed
JingsongLi wants to merge 2 commits into
Closed
[core] Support aggregation for partial-update sequence groups#9319JingsongLi wants to merge 2 commits into
JingsongLi wants to merge 2 commits into
Conversation
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
Allow Partial Update tables to configure one aggregate function for every value field protected by a sequence group, using a sequence-centered option:
Per-field aggregate functions still take precedence, followed by the sequence-group aggregate function and then the default aggregate function. Ordering and primary-key fields are never aggregated.
This change also validates orphan sequence-group aggregate options, preserves the option during column renames, and documents the new syntax.
Tests
mvn -pl paimon-core -am -DfailIfNoTests=false -DwildcardSuites=none -Dtest='CoreOptionsTest#testSequenceGroupAggregateFunction+testSequenceGroupAggregateFunctionWithoutGroup,SchemaManagerTest#testRenameColumnInSequenceGroupAggregateFunction' testmaster, local execution of both the new test and the existingPartialUpdateMergeFunctionTest#testSequenceGroupis blocked by the same JDK 8CodeGenLoader/URLClassPathNPE before merge assertions run.