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

Scalar expressions after aggregation should be supported.

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Benchmark

    Description

      in TPC-DS q54

      cannot run this query in tajo with internal error

      select segment, count(*) as num_customers, segment*50 as segment_base
      from segments
      group by segment
      order by segment, num_customers ;
      

      to run above query, modify a little bit

      select s, num_customers, s *50 as segment_base
      from
      (select segment as s, count(*) as num_customers
      from segments
      group by segment
      order by segment, num_customers) a;
      

      this process is inefficient.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dkhwangbo Dongkyu Hwangbo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: