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

Analytic function of collections can lead to crash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 4.4.0
    • Impala 4.5.0, Impala 4.4.1
    • None
    • None

    Description

      Using Impala's test data the following query leads to DCHECK in debug builds and may cause more subtle issues in RELEASE builds:

      select
        row_no
      from (
      	   select
      		 arr.small,
      		 row_number() over (
      		  order by arr.inner_struct1.str) as row_no
      	   from functional_parquet.collection_struct_mix t, t.arr_contains_nested_struct arr
      	 ) res
      

      The following DCHECK is hit:

      tuple.h:296 Check failed: offset != -1
      

      The problem seems to be with arr.small, which is referenced in the inline view, but not used in the outer query - removing it from the inline view or adding it to the outer select leads to avoiding the bug. The problem seems related to materialization - offset==-1 means that the slot is not materialized, but the Parquet scanner still tries to materialize it.

      It is not clear yet which commit introduced the bug or whether this is a bug in the planner or the backend.

      Attachments

        Issue Links

          Activity

            People

              daniel.becker Daniel Becker
              csringhofer Csaba Ringhofer
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: