Github user ppadma commented on a diff in the pull request:
https://github.com/apache/drill/pull/1038#discussion_r153661820
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/store/ischema/InfoSchemaFilter.java
---
@@ -202,14 +202,19 @@ private Result evaluateHelperFunction(Map<String,
String> recordValues, Function
// If at least one arg returns FALSE, then the AND function value
is FALSE
// If at least one arg returns INCONCLUSIVE, then the AND function
value is INCONCLUSIVE
// If all args return TRUE, then the AND function value is TRUE
+ Result result = Result.TRUE;
+
for(ExprNode arg : exprNode.args) {
Result exprResult = evaluateHelper(recordValues, arg);
- if (exprResult != Result.TRUE) {
+ if (exprResult == Result.FALSE) {
return exprResult;
}
+ if (exprResult == Result.INCONCLUSIVE) {
--- End diff --
@parthchandra yes, that is correct.
---