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

Allow text quoted by single quotes be treated as a literal value of char/varchar

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Done
    • Impala 2.4.0
    • None
    • Frontend
    • None

    Description

      Currently, in Impala, a string quoted with single quotes (such as 'abcd') is treated as a literal value of String type. To use it with char/varchar type, an explicit conversion is needed.

      For example, blow query doesn't work:

      insert into table tbl (char_col) values ('abcd')
      

      Only below query works:

      insert into table tbl (char_col) values ( cast ('abcd' as char(20)))
      

      It does make sense to allow the first query.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Yibing Yibing Shi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: