Skip to content

Fix outer join output with all-null indices on empty batch#2272

Merged
yjshen merged 5 commits intoapache:masterfrom
yjshen:left_join_panic
Apr 21, 2022
Merged

Fix outer join output with all-null indices on empty batch#2272
yjshen merged 5 commits intoapache:masterfrom
yjshen:left_join_panic

Conversation

@yjshen
Copy link
Copy Markdown
Member

@yjshen yjshen commented Apr 19, 2022

Which issue does this PR close?

Closes #2268.

Rationale for this change

Fix take all-null indices from empty batch during join output.

What changes are included in this PR?

FIx along with a test.

Are there any user-facing changes?

No.

No.

@yjshen yjshen changed the title Fix outer join output with all-null indices Fix outer join output with all-null indices on empty batch Apr 19, 2022
Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @yjshen 👍

I ran the initial reproducer provided by @wangxiaoying and confirmed that this PR fixes the issue.

Comment thread datafusion/core/tests/sql/joins.rs Outdated
@yjshen yjshen merged commit b9bf53a into apache:master Apr 21, 2022
@yjshen yjshen deleted the left_join_panic branch April 22, 2022 08:30
gandronchik pushed a commit to cube-js/arrow-datafusion that referenced this pull request Sep 2, 2022
* Fix outer join output with all-null indices

* refactor test

* t1_value

* sql

* right join
gandronchik pushed a commit to cube-js/arrow-datafusion that referenced this pull request Sep 2, 2022
* Fix outer join output with all-null indices

* refactor test

* t1_value

* sql

* right join

qwe
gandronchik pushed a commit to cube-js/arrow-datafusion that referenced this pull request Sep 2, 2022
* Fix outer join output with all-null indices

* refactor test

* t1_value

* sql

* right join

qwe

qwe
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.

LEFT JOIN panicked at 'assertion failed: i < self.len()' and derive incorrect result

2 participants