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

Filters with OR is not pushed down correctly #273

Open
takkarharsh opened this issue Aug 27, 2019 · 1 comment
Open

Filters with OR is not pushed down correctly #273

takkarharsh opened this issue Aug 27, 2019 · 1 comment

Comments

@takkarharsh
Copy link

takkarharsh commented Aug 27, 2019

https://issues.apache.org/jira/browse/HIVE-22154
As a user if we add multiple filters with "or" operator on spark dataframe it should be enclosed properly with correct brackets but in the current version of hwc multiple filters are not enclosed with proper brackets
for e.g.
df = df.fiter("condition1 or condition2")
df = df.filter("condition3 and condition4")

the resultant query created is as follows

(condition1) or (condition2) and (condition3) and (condition4)
ideally it should be as follows
((condition1) or (condition2)) and ((condition3) and (condition4))

@takkarharsh
Copy link
Author

#274

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

No branches or pull requests

1 participant