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

Automatically add limit has bug

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: v2.6.2
    • Fix Version/s: v3.0.0-alpha2
    • Component/s: Query Engine
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: