carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manishgupta88 <...@git.apache.org>
Subject [GitHub] carbondata pull request #1932: [CARBONDATA-2131] Alter table adding long dat...
Date Thu, 08 Feb 2018 06:36:15 GMT
Github user manishgupta88 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1932#discussion_r165971754
  
    --- Diff: integration/spark2/src/test/scala/org/apache/spark/carbondata/restructure/AlterTableValidationTestCase.scala
---
    @@ -128,6 +128,24 @@ class AlterTableValidationTestCase extends Spark2QueryTest with BeforeAndAfterAl
           Row(new BigDecimal("123.45").setScale(2, RoundingMode.HALF_UP)))
       }
     
    +  test("test add long column before load") {
    +    sql("drop table if exists alterLong")
    +    sql("create table alterLong (name string) stored by 'carbondata'")
    +    sql("alter table alterLong add columns(newCol long)")
    +    sql("insert into alterLong select 'a',60000")
    +    checkAnswer(sql("select * from alterLong"), Row("a", 60000))
    +    sql("drop table if exists alterLong")
    +  }
    +
    +  test("test add long column after load") {
    +    sql("drop table if exists alterLong1")
    +    sql("create table alterLong1 (name string) stored by 'carbondata'")
    +    sql("insert into alterLong1 select 'a'")
    +    sql("alter table alterLong1 add columns(newCol long)")
    --- End diff --
    
    do one more load after alter


---

Mime
View raw message