Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Incremental-between tags should deduplicate records #3338

Merged
merged 2 commits into from
May 16, 2024

Conversation

JingsongLi
Copy link
Contributor

Purpose

Linked issue: close #3310

Tests

API and Format

Documentation

split.dataFiles(),
split.deletionFiles().orElse(null),
true));
if (split.isStreaming() || split.convertToRawFiles().isPresent()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

split.rawConvertible()?

Copy link
Contributor

@leaves12138 leaves12138 May 16, 2024

Choose a reason for hiding this comment

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

maybe we can write like this:

      if (split.rawConvertible()) {
            return createNoMergeReader(
                    split.partition(),
                    split.bucket(),
                    split.dataFiles(),
                    split.deletionFiles().orElse(null),
                    false);
        } else {
            return createMergeReader(
                    split.partition(), split.bucket(), split.dataFiles(), null, forceKeepDelete);
        }

If split.isStreaming() then split.rawConvertible() must be true. If rawConvertible, then no need to merge, we can filter the whole value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can ignore rawConvertible, it will use RawFileSplitRead.

Copy link
Contributor

@leaves12138 leaves12138 left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit 3a64148 into apache:master May 16, 2024
7 of 9 checks passed
sunxiaojian pushed a commit to sunxiaojian/paimon that referenced this pull request May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants