Skip to content

[core] Slightly refatory code in LookupChangelogMergeFunctionWrapper#5010

Merged
JingsongLi merged 4 commits intoapache:masterfrom
leaves12138:refact
Feb 11, 2025
Merged

[core] Slightly refatory code in LookupChangelogMergeFunctionWrapper#5010
JingsongLi merged 4 commits intoapache:masterfrom
leaves12138:refact

Conversation

@leaves12138
Copy link
Copy Markdown
Contributor

@leaves12138 leaves12138 commented Feb 5, 2025

Purpose

We don't need two merge functions in one LookupChangelogMergeFunctionWrapper

Tests

API and Format

Documentation

@leaves12138 leaves12138 changed the title [core] Slightly refatory code in LookUpFunctionWrapper [core] Slightly refatory code in LookupChangelogMergeFunctionWrapper Feb 5, 2025
}

/** Copier for KeyValue. */
public static class KeyValueCopier {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't introduce this.

private final Comparator<KeyValue> comparator;

private final LinkedList<KeyValue> candidates = new LinkedList<>();
private final KeyValue.KeyValueCopier keyValueCopier;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just store keySerializer and valueSerializer here.

@wwj6591812
Copy link
Copy Markdown
Contributor

+1

1 similar comment
@JingsongLi
Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit 7715c60 into apache:master Feb 11, 2025
12 checks passed
JackeyLee007 pushed a commit to JackeyLee007/paimon that referenced this pull request Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants