The following query on test dataset produces a result set containing 5 rows.
However, if I change the where condition to the following, Kylin produces empty result. This is wrong because `A or false` is just `A`, the result should be the same as above qeury.
I have tried to add a constant folding rule `ReduceExpressionsRule.FILTER_INSTANCE` from calcite, expecting planner to reduce the second query to the first one. But it didn't work. Seems the rule has bug in itself, see https://issues.apache.org/jira/browse/DRILL-2218.
As as result, we need more investigating to see why it goes wrong and fix the problem.
BTW, the second query may seems rediculous at first glance. But in fact this kind of query is generated by one of our reporting front-end.