You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Kunal Khatua (JIRA)" <ji...@apache.org> on 2019/01/09 23:08:00 UTC

[jira] [Created] (DRILL-6960) Auto wrapping with LIMIT query should not apply to non-select queries

Kunal Khatua created DRILL-6960:
-----------------------------------

             Summary: Auto wrapping with LIMIT query should not apply to non-select queries
                 Key: DRILL-6960
                 URL: https://issues.apache.org/jira/browse/DRILL-6960
             Project: Apache Drill
          Issue Type: Bug
          Components: Web Server
    Affects Versions: 1.16.0
            Reporter: Kunal Khatua
            Assignee: Kunal Khatua
             Fix For: 1.16.0


[~IhorHuzenko] pointed out that DRILL-6050 can cause submission of queries with incorrect syntax. 
For example, when user enters {{SHOW DATABASES}}' and after limitation wrapping {{SELECT * FROM (SHOW DATABASES) LIMIT 10}} will be posted. 
This results into parsing errors, like:
{{Query Failed: An Error Occurred org.apache.drill.common.exceptions.UserRemoteException: PARSE ERROR: Encountered "( show" at line 2, column 15. Was expecting one of: <IDENTIFIER> ... }}.

The fix should involve a javascript check for all non-select queries and not apply the LIMIT wrap for those queries.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)