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

Codegen for Merging-Exchange node

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Impala 2.8.0
    • Impala 2.8.0
    • Backend

    Description

      We should codegen the TupleRowComparator for merging-exchange operator. This should help a lot for queries such as:

      SELECT *
      FROM   (SELECT Rank()
                       OVER(
                         ORDER BY  l_orderkey) AS rank
              FROM   lineitem
              WHERE  l_shipdate < '1992-05-09') a
      WHERE  rank < 10;
      
       03:SELECT  
       |  predicates: rank() < 10
       |
       02:ANALYTIC
       |  functions: rank()
       |  order by: l_orderkey ASC  
       |  window: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
       |  
       04:MERGING-EXCHANGE [UNPARTITIONED]
       |  order by: l_orderkey ASC 
       | 
       01:SORT
       |  order by: l_orderkey ASC 
       | 
       00:SCAN HDFS [tpch_parquet.lineitem] 
         partitions=1/1 files=3 size=193.61MB
         predicates: l_shipdate < '1992-05-09' 
      

      Attachments

        Activity

          People

            kwho Michael Ho
            kwho Michael Ho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: