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

IMPALA-4166 breaks queries on tables with sort.column that do a expr rewrite

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Impala 2.9.0
    • Fix Version/s: Impala 2.9.0
    • Component/s: Frontend
    • Labels:
      None

      Description

      IMPALA-4166 breaks queries on tables with sort.column that do an expr rewrite.

      Repro:

      create table t (i int) stored as parquet;
      insert into t select cast(id as int) from (select 1 as id union select cast(2 as int) as id) sub;
      

      I will push a fix shortly.

        Issue Links

          Activity

          Hide
          lv Lars Volker added a comment -

          IMPALA-5339: Fix analysis with sort.columns and expr rewrites

          IMPALA-4166 introduced a bug by duplicating code that adds sort
          expressions. Upon re-analysis, this code would hit an
          IndexOutOfBoundsException.

          Change-Id: Ibebba29509ae7eaa691fe305500cda6bd41a179a
          Reviewed-on: http://gerrit.cloudera.org:8080/6921
          Reviewed-by: Lars Volker <lv@cloudera.com>
          Tested-by: Impala Public Jenkins

          Show
          lv Lars Volker added a comment - IMPALA-5339 : Fix analysis with sort.columns and expr rewrites IMPALA-4166 introduced a bug by duplicating code that adds sort expressions. Upon re-analysis, this code would hit an IndexOutOfBoundsException. Change-Id: Ibebba29509ae7eaa691fe305500cda6bd41a179a Reviewed-on: http://gerrit.cloudera.org:8080/6921 Reviewed-by: Lars Volker <lv@cloudera.com> Tested-by: Impala Public Jenkins

            People

            • Assignee:
              lv Lars Volker
              Reporter:
              lv Lars Volker
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development