Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-2082

Aggregation on a derived table which includes union can cause incorrect result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.11.0, 0.11.1
    • 0.12.0, 0.11.2
    • distributed query plan
    • None

    Description

      This problem can be reproduced by running the following query on 10GB TPC-H data set.

      select 
        sum(t.cnt) as cnt, o_orderkey, o_custkey 
      from 
        (
          select 
            o_orderkey, o_custkey, CAST(COUNT(1) AS INT4) as cnt 
          from 
            orders 
          group by 
            o_orderkey, o_custkey 
          union all 
          select 
            o_orderkey, o_custkey, o_shippriority 
          from 
            orders
        ) as t 
      group by 
        o_orderkey, o_custkey
      

      Attachments

        Activity

          People

            jihoonson Jihoon Son
            jihoonson Jihoon Son
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: