drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasadns14 <...@git.apache.org>
Subject [GitHub] drill pull request #1033: DRILL-5952: Implement "CREATE TABLE IF NOT EXISTS"
Date Fri, 17 Nov 2017 06:55:36 GMT
Github user prasadns14 commented on a diff in the pull request:

    https://github.com/apache/drill/pull/1033#discussion_r151613939
  
    --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/sql/TestCTAS.java ---
    @@ -313,6 +313,59 @@ public void createTableWithCustomUmask() throws Exception {
         }
       }
     
    +  @Test // DRILL-5951
    +  public void testCreateTableIfNotExistsWhenTableWithSameNameAlreadyExists() throws Exception{
    +    final String newTblName = "createTableIfNotExistsWhenATableWithSameNameAlreadyExists";
    +
    +    try {
    +      test(String.format("CREATE TABLE %s.%s AS SELECT * from cp.`region.json`", TEMP_SCHEMA,
newTblName));
    --- End diff --
    
    fixed it


---

Mime
View raw message