Skip to content

[CALCITE-3828] MergeJoin throws NPE in case of null keys#1833

Merged
rubenada merged 1 commit intoapache:masterfrom
rubenada:CALCITE-3828
Mar 6, 2020
Merged

[CALCITE-3828] MergeJoin throws NPE in case of null keys#1833
rubenada merged 1 commit intoapache:masterfrom
rubenada:CALCITE-3828

Conversation

@rubenada
Copy link
Contributor

Jira ticket: CALCITE-3828

EnumerableDefaults#MergeJoinEnumerator throws a NPE in case of null keys.
MergeJoin algorithm assumes that inputs sorted in ascending order, with nulls last (see EnumerableMergeJoinRule), so when reaching a null key on the left / right side means that we are done.

Copy link
Contributor

@chunweilei chunweilei left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@danny0405 danny0405 left a comment

Choose a reason for hiding this comment

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

+1

@rubenada rubenada added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Mar 5, 2020
@rubenada rubenada merged commit bfde14b into apache:master Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LGTM-will-merge-soon Overall PR looks OK. Only minor things left.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants