drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdiravka <...@git.apache.org>
Subject [GitHub] drill pull request #541: DRILL-4673: Implement "DROP TABLE IF EXISTS" for dr...
Date Fri, 08 Jul 2016 16:09:16 GMT
Github user vdiravka commented on a diff in the pull request:

    https://github.com/apache/drill/pull/541#discussion_r70099210
  
    --- Diff: exec/java-exec/src/main/codegen/includes/parserImpls.ftl ---
    @@ -245,15 +247,17 @@ SqlNode SqlCreateTable() :
      * Parses a drop table statement.
      * DROP TABLE table_name;
      */
    -SqlNode SqlDropTable() :
    +SqlNode SqlDropTableIfExists() :
     {
         SqlParserPos pos;
    +    boolean tableExistenceCheck = false;
     }
     {
         <DROP> { pos = getPos(); }
         <TABLE>
    +    [ <IF> <EXISTS> { tableExistenceCheck = true; } ]
         {
    -        return new SqlDropTable(pos, CompoundIdentifier());
    +        return new SqlDropTable(pos, CompoundIdentifier(), tableExistenceCheck);
    --- End diff --
    
    Done in a new commit.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message