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

sort operator after Inline views consisting of unions can cause an incorrect distributed plan

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • distributed query plan
    • None

    Description

      See the title. The following query is an example of this bug.

      SELECT
        l_returnflag,
        l_linestatus
      
      FROM (
        SELECT
          *
        FROM
          lineitem
        WHERE
          l_returnflag = 'O'
      
        UNION ALL
      
        SELECT
          *
        FROM
          lineitem
        WHERE
          l_returnflag = 'R'
      ) T
      
      GROUP BY
        l_returnflag,
        l_linestatus
      
      ORDER BY
        l_returnflag,
        l_linestatus
      

      This patch adds an unit test to reproduce this case and includes the bug fix.

      Attachments

        1. TAJO-418.patch
          4 kB
          Hyunsik Choi

        Activity

          People

            hyunsik Hyunsik Choi
            hyunsik Hyunsik Choi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: