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

Fix CHAR datatype: Incorrect results with basic predicate on CHAR typed column.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Impala 2.1, Impala 2.3.0
    • None
    • Backend

    Description

      Repro:

      create table foo(col1 char(10));
      insert into foo values (cast('test1' as char(10)));
      select * from foo where col1 = 'test1'; <-- returns an empty result set
      select * from foo where col1 = cast('test1' as char(10)); <-- correctly returns 1 row
      

      Attachments

        1. 8be18d4.diff
          5 kB
          Tim Armstrong

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alex.behm Alexander Behm
              Votes:
              2 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated: