Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-82

NULL is not union-compatible with non-boolean column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 0.5
    • Impala 0.7
    • None
    • None

    Description

      Assume tbl1 has a single string-valued column. Then:

      INSERT INTO tbl1 SELECT NULL FROM tbl2 LIMIT 1
      

      should work, but it doesn't because the NULL literal is inferred as a boolean type, which is not compatible with a string target.

      See {{NullLiteral.java}:

      public NullLiteral() {
        // TODO: should NULL be a type?                                                                                                                                                                                                     
        type = PrimitiveType.BOOLEAN;
      }
      

      Attachments

        Issue Links

          Activity

            People

              alex.behm Alexander Behm
              henryr Henry Robinson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: