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] Delete redundant if statement when produce changelog by lookup for first row. #4270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wwj6591812
Copy link
Contributor

@wwj6591812 wwj6591812 commented Sep 27, 2024

Purpose

When I study the logic of produce changelog, I find a redundant if statement affects my understanding of the code logic.
In order not to affect more people, so now delete it.

Linked issue: close #xxx

Tests

Existing tests should cover this change.

API and Format

Documentation

@wwj6591812
Copy link
Contributor Author

The ut is fail, but not caused by my modify.

return reusedResult.addChangelog(result);
}

// mergeFunction.containsHighLevel is false, so new record, output changelog
Copy link
Contributor

Choose a reason for hiding this comment

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

what about

// new record, output changelog
return reusedResult.setResult(result).addChangelog(result);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done
good, very thanks.

@wwj6591812 wwj6591812 force-pushed the delete_redundant_in_FirstRowMergeFunctionWrapper_0927 branch from 7deae95 to 5c16018 Compare September 27, 2024 02:57
Copy link
Contributor

@Aitozi Aitozi left a comment

Choose a reason for hiding this comment

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

LGTM

@wwj6591812 wwj6591812 changed the title Delete redundant if statement when produce changelog by lookup for first row. [core] Delete redundant if statement when produce changelog by lookup for first row. Oct 3, 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
Development

Successfully merging this pull request may close these issues.

2 participants