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

Grouping aggregations with having conjuncts and Serialize()/Finalize() functions uses excessive expr memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Impala 2.10.0
    • Impala 2.11.0
    • Backend
    • None

    Description

      The loop in GetRowsFromPartition() invokes Finalize()/Serialize() on all of the rows in output_partition_, which may allocate local allocations in output_partition_->agg_fn_evals. These are not cleared out until the partition is destroyed.

      If the having conjuncts are very select this can result in a lot of excess memory. E.g. the following query results in a lot of non-buffer-pool memory overhead:

      select l_orderkey, min(l_comment) from tpch_parquet.lineitem group by l_orderkey having min(l_comment) like '%slow dolphins%' order by l_orderkey
      

      Attachments

        Issue Links

          Activity

            People

              tarmstrong Tim Armstrong
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: