drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amansinha100 <...@git.apache.org>
Subject [GitHub] drill pull request #517: DRILL-4704 fix
Date Tue, 09 Aug 2016 00:00:43 GMT
Github user amansinha100 commented on a diff in the pull request:

    --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/expr/ExpressionTreeMaterializer.java
    @@ -267,6 +267,17 @@ public LogicalExpression visitBooleanOperator(BooleanOperator op,
           return new BooleanOperator(op.getName(), args, op.getPosition());
    +    static public int computePrecision(LogicalExpression currentArg) {
    +        int precision = currentArg.getMajorType().getPrecision();
    --- End diff --
    Did you consider checking whether the type has a precision or not using getMajorType().hasPrecision()
 ?  That way, you would only call getPrecision() if it returned True and otherwise set the
precision for INT, BIGINT. 

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message