Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Join Query Filter #721

Open
abhishek1015 opened this issue Jan 31, 2014 · 2 comments
Open

Join Query Filter #721

abhishek1015 opened this issue Jan 31, 2014 · 2 comments

Comments

@abhishek1015
Copy link

select * from t1 inner join t2 on t1.col1 = t2.col2 where t1.id < 1000 and t2.id < 1000

For above query, phoenix first join the tables t1 and t2, and then apply the filter t1.id < 1000 and t2.id < 1000. This is very inefficient. This can be easily fixed by pushing the filter operation before the join query.

@jtaylor-sfdc
Copy link
Contributor

@abhishek1015 - nice find. Our github project has been moved to Apache now. Would you mind filing this issue as a JIRA over there (https://issues.apache.org/jira/browse/PHOENIX)? As an incentive, I may have a work around for you. :-)

@abhishek1015
Copy link
Author

thanks for prompt reply.

Jira: https://issues.apache.org/jira/browse/PHOENIX-16

waiting for work around :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants