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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Impala 2.1, Impala 2.3.0
    • Fix Version/s: None
    • Component/s: 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

              • Assignee:
                Unassigned
                Reporter:
                alex.behm Alexander Behm
              • Votes:
                2 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated: