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] Fix that ignore-delete option is not compatible with old delete records and LocalMergeOperator #3139

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

yuzelin
Copy link
Contributor

@yuzelin yuzelin commented Apr 1, 2024

Purpose

Before #3128 , the delete records can be write into data file even when ignore-delete=true. So if using jar built after 3128 to read old data, the merge engine might throw exception. This PR fix it by adding filter in reader.

Besides, records passed by LocalMergeOperator also should be filtered.

Also remove changeIgnoreMergeEngine in merge_into action. Because I think merge_into should also obey the constrains of merge engine.

Tests

API and Format

Documentation

@yuzelin yuzelin changed the title [WIP] Fix that ignore-delete option are not compatible with old data [WIP] Fix that ignore-delete option is not compatible with old delete data Apr 2, 2024
@yuzelin yuzelin changed the title [WIP] Fix that ignore-delete option is not compatible with old delete data [core] Fix that ignore-delete option is not compatible with old delete records Apr 2, 2024
internalRow == null
? null
: serializer.fromRow(internalRow).setLevel(level));
// In older version, the delete records might be written into data file even when
Copy link
Contributor

Choose a reason for hiding this comment

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

Document clear: Version 0.7

keyType,
valueType,
level,
CoreOptions.fromMap(schema.options()).ignoreDelete());
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be a class member.

@yuzelin yuzelin changed the title [core] Fix that ignore-delete option is not compatible with old delete records [core] Fix that ignore-delete option is not compatible with old delete records and LocalMergeOperator Apr 2, 2024
@JingsongLi
Copy link
Contributor

We must figure out how to deal with changeIgnoreMergeEngine.

@JingsongLi JingsongLi merged commit 5add480 into apache:master Apr 3, 2024
9 checks passed
@yuzelin yuzelin deleted the hotfix branch April 3, 2024 06:55
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.

2 participants