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

fix: not consume all the datums if some of them is empty #1181

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

ShiKaiWi
Copy link
Member

Rationale

The remaining datums won't be consumed for computing partition if there is one empty datum in them.

Detailed Changes

Avoid break when encounter an empty string.

Test Plan

Add a unit test for this case.

@ShiKaiWi ShiKaiWi force-pushed the fix-partition-rule-computing branch from 9510f4e to 8c0d60f Compare August 29, 2023 03:11
@ShiKaiWi ShiKaiWi force-pushed the fix-partition-rule-computing branch 2 times, most recently from 31cb9b9 to 339a35d Compare August 30, 2023 02:26
@ShiKaiWi ShiKaiWi force-pushed the fix-partition-rule-computing branch from 339a35d to f55b7c5 Compare August 30, 2023 09:42
Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi ShiKaiWi merged commit b25515f into apache:main Aug 31, 2023
6 checks passed
@ShiKaiWi ShiKaiWi deleted the fix-partition-rule-computing branch August 31, 2023 01:56
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.

None yet

2 participants