spark-llap icon indicating copy to clipboard operation
spark-llap copied to clipboard

added brackets to logical expression to correctly distinguish between…

Open takkarharsh opened this issue 5 years ago • 1 comments

issue : https://github.com/hortonworks-spark/spark-llap/issues/273

What changes were proposed in this pull request?

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))

How was this patch tested?

manual tests

takkarharsh avatar Aug 27 '19 14:08 takkarharsh

https://issues.apache.org/jira/browse/HIVE-22154

takkarharsh avatar Aug 28 '19 11:08 takkarharsh