[ https://issues.apache.org/jira/browse/DRILL-4673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15371863#comment-15371863 ]
ASF GitHub Bot commented on DRILL-4673: --------------------------------------- Github user julianhyde commented on the issue: https://github.com/apache/drill/pull/541 The method in the parser and the class should both be called `DropTable`. `ifExists` should just be a boolean field. At some point you might want to add an `OR REPLACE` clause to `CREATE VIEW`, and add `IF NOT EXISTS` to `CREATE TABLE`. You would not want to rename those classes, either. Just add a boolean field. > Implement "DROP TABLE IF EXISTS" for drill to prevent FAILED status on > command return > ------------------------------------------------------------------------------------- > > Key: DRILL-4673 > URL: https://issues.apache.org/jira/browse/DRILL-4673 > Project: Apache Drill > Issue Type: New Feature > Components: Functions - Drill > Reporter: Vitalii Diravka > Assignee: Vitalii Diravka > Priority: Minor > Labels: drill > > Implement "DROP TABLE IF EXISTS" for drill to prevent FAILED status on > command "DROP TABLE" return if table doesn't exist. > The same for "DROP VIEW IF EXISTS" -- This message was sent by Atlassian JIRA (v6.3.4#6332)