carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lionelcao <...@git.apache.org>
Subject [GitHub] carbondata pull request #1452: [CARBONDATA-1593] Add partition to table caus...
Date Tue, 31 Oct 2017 08:08:27 GMT
Github user lionelcao commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1452#discussion_r147917357
  
    --- Diff: integration/spark2/src/test/scala/org/apache/carbondata/spark/testsuite/partition/TestAlterPartitionTable.scala
---
    @@ -779,6 +779,23 @@ class TestAlterPartitionTable extends QueryTest with BeforeAndAfterAll
{
              .contains("Data in range info must be the same type with the partition field's
type"))
       }
     
    +  test("Alter table in or not in default database") {
    +    sql("DROP TABLE IF EXISTS carbonTable_default_db")
    +    sql("""
    +          | create table carbonTable_default_db(id int, name string) partitioned by (city
string)
    +          | row format delimited fields terminated by ','
    +        """.stripMargin)
    +    sql("alter table carbonTable_default_db add partition (city = 'Beijing')")
    +
    +    sql(s"CREATE DATABASE if not exists carbonDB")
    +    sql("DROP TABLE IF EXISTS carbonDB.carbonTable")
    +    sql("""
    +          | create table carbonDB.carbonTable(id int, name string) partitioned by (city
string)
    +          | row format delimited fields terminated by ','
    --- End diff --
    
    Same problem.


---

Mime
View raw message