apache / apache/drill

apache drill failed to execute SQL such as ' table1 left join table2 on condition 1 or condition 2'

Open
#2,781 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
990
Avg merge
1d 8h
Merged PRs (30d)
5

Description

Execute the following sql (although it may not make sense):
SELECT aa.employee_id FROM cp.`employee.json` aa left join cp.`employee.json` bb on aa.employee_id=bb.employee_id or aa.employee_id=bb.position_id ;

![6](https://user-images.githubusercontent.com/26477240/227453118-0d9cddc3-dca8-4119-a351-dde1e050992e.png)

I got the results:

![7](https://user-images.githubusercontent.com/26477240/227452771-fe7bf138-5ac4-4dfc-b04c-87f3557c4a69.png)
I tried to modify the corresponding parameters 'planner.enable_nljoin_for_scalar_only', but it still didn't work.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.