[ 
https://issues.apache.org/jira/browse/DRILL-4673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15361023#comment-15361023
 ] 

Vitalii Diravka commented on DRILL-4673:
----------------------------------------

It was decided to use "IF EXISTS" statement.
To implement it "IF" keyword is added to the reserved words list.

After that "IF" function (loaded from Hive) will stop working. In this case 
users will have two options:
a) surround if with backticks (ex: select `if`(condition,option1, option2)
from table)
b) replace if function with case statement

> 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)

Reply via email to