Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2254

A kind of sub-query does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v2.0.0
    • None
    • None

    Description

      For example below query does not work.

      SELECT
      f.lstg_format_name
      ,sum(price) as sum_price
      FROM
      test_kylin_fact f
      inner join
      (
      select
      lstg_format_name,
      min(slr_segment_cd) as min_seg
      from
      test_kylin_fact
      group by
      lstg_format_name
      ) t on f.lstg_format_name = t.lstg_format_name
      where
      f.slr_segment_cd = min_seg
      group by
      f.lstg_format_name

      Attachments

        Issue Links

          Activity

            People

              liyang.gmt8@gmail.com liyang
              liyang.gmt8@gmail.com liyang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: