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

Automatically add limit has bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v2.6.2
    • v3.0.0-alpha2
    • Query Engine
    • None

    Description

      SELECT E_Name FROM Employees_China
      UNION
      SELECT E_Name FROM Employees_USA
      
      

      will convert to

      SELECT E_Name FROM Employees_China
      UNION
      SELECT E_Name FROM Employees_USA
      LIMIT 50000
      

      This limit is not working on the result of union, but on SELECT E_Name FROM Employees_USA.
      We should use a more secure way to achieve the limit effect.

      Attachments

        1. image-2019-09-19-16-47-40-292.png
          212 kB
          Yaqian Zhang

        Issue Links

          Activity

            People

              codingforfun weibin0516
              codingforfun weibin0516
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: