Github user jinfengni commented on a diff in the pull request:

    https://github.com/apache/drill/pull/819#discussion_r113800548
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/DrillOptiq.java
 ---
    @@ -512,9 +511,9 @@ public LogicalExpression visitLiteral(RexLiteral 
literal) {
             return ValueExpressions.getBit(((Boolean) literal.getValue()));
           case CHAR:
             if (isLiteralNull(literal)) {
    -          return createNullExpr(MinorType.VARCHAR);
    +          return createStringNullExpr(literal.getType().getPrecision());
    --- End diff --
    
    what is the length for literal "NULL"?  


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to