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

ARRAY<STRUCT<s: STRING> crashes in top-n

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Backend
    • None

    Description

      In ASAN builds if we sort an array containing a struct of a string with limit, Impala crashes. This is how to reproduce it:

      In Hive:

      create table su (arr ARRAY<STRUCT<s: STRING>>) stored as parquet;
      insert into su values (array(named_struct("s", "A")));
      

      In Impala:

      select 1, arr from su order by 1 limit 1

      The ASAN error message indicates a heap-use-after-free.

      Note that this only happens if codegen is enabled.

      Attachments

        Issue Links

          Activity

            People

              daniel.becker Daniel Becker
              daniel.becker Daniel Becker
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: