[GitHub] carbondata pull request #1186: [WIP]Merge test code for AddColumnTestCases, ...

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #1186: [WIP]Merge test code for AddColumnTestCases, ...

qiuchenjian-2
GitHub user mayunSaicmotor opened a pull request:

    https://github.com/apache/carbondata/pull/1186

    [WIP]Merge test code for AddColumnTestCases, DropColumnTestCases and ChangeDataTypeTestCases

    merge test code for AddColumnTestCases, DropColumnTestCases and ChangeDataTypeTestCases
    between packages,

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mayunSaicmotor/incubator-carbondata CARBONDATA-1310

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/1186.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1186
   
----
commit daae0137ba66930c55030dfeaad42c4349346e5f
Author: mayun <[hidden email]>
Date:   2017-07-19T09:42:19Z

    merge test code between 2 packages

----


---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [WIP]Merge test code for AddColumnTestCases, DropCol...

qiuchenjian-2
Github user asfgit commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    Can one of the admins verify this patch?


---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [WIP]Merge test code for AddColumnTestCases, DropCol...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user asfgit commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    Can one of the admins verify this patch?


---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [WIP]Merge test code for AddColumnTestCases, DropCol...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/3118/



---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [WIP]Merge test code for AddColumnTestCases, DropCol...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    Build Success with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/527/



---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #1186: [WIP]Merge test code for AddColumnTestCases, ...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user chenliang613 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1186#discussion_r128239341
 
    --- Diff: integration/spark2/src/test/scala/org/apache/spark/carbondata/restructure/vectorreader/AddColumnTestCases.scala ---
    @@ -42,26 +43,55 @@ class AddColumnTestCases extends Spark2QueryTest with BeforeAndAfterAll {
           "('DICTIONARY_EXCLUDE'='charField', 'DEFAULT.VALUE.charfield'='def')")
         sql(s"LOAD DATA LOCAL INPATH '$resourcesPath/restructure/data1.csv' INTO TABLE addcolumntest " +
             s"options('FILEHEADER'='intField,stringField,charField,timestampField,decimalField')")
    +    sql("CREATE TABLE hivetable stored as parquet select * from addcolumntest")
       }
     
       test("test like query on new column") {
    +    sqlContext.setConf("carbon.enable.vector.reader", "true")
    --- End diff --
   
    Why need to add the vector settings?


---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #1186: [WIP]Merge test code for AddColumnTestCases, ...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user mayunSaicmotor commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1186#discussion_r128272093
 
    --- Diff: integration/spark2/src/test/scala/org/apache/spark/carbondata/restructure/vectorreader/AddColumnTestCases.scala ---
    @@ -42,26 +43,55 @@ class AddColumnTestCases extends Spark2QueryTest with BeforeAndAfterAll {
           "('DICTIONARY_EXCLUDE'='charField', 'DEFAULT.VALUE.charfield'='def')")
         sql(s"LOAD DATA LOCAL INPATH '$resourcesPath/restructure/data1.csv' INTO TABLE addcolumntest " +
             s"options('FILEHEADER'='intField,stringField,charField,timestampField,decimalField')")
    +    sql("CREATE TABLE hivetable stored as parquet select * from addcolumntest")
       }
     
       test("test like query on new column") {
    +    sqlContext.setConf("carbon.enable.vector.reader", "true")
    --- End diff --
   
    true should means vector reader, false means row reader, actually it is the main difference between the 2 test class packages which need to merge


---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [WIP]Merge test code for AddColumnTestCases, DropCol...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/3128/



---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [WIP]Merge test code for AddColumnTestCases, DropCol...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    Build Success with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/537/



---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [CARBONDATA-1310]Merge test code for AddColumnTestCa...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user chenliang613 commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    retest this please


---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [CARBONDATA-1310]Merge test code for AddColumnTestCa...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/3167/



---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [CARBONDATA-1310]Merge test code for AddColumnTestCa...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    Build Success with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/572/



---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #1186: [CARBONDATA-1310]Merge test code for AddColum...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user chenliang613 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1186#discussion_r128705965
 
    --- Diff: integration/spark2/src/test/scala/org/apache/spark/carbondata/restructure/vectorreader/AddColumnTestCases.scala ---
    @@ -42,91 +43,263 @@ class AddColumnTestCases extends Spark2QueryTest with BeforeAndAfterAll {
           "('DICTIONARY_EXCLUDE'='charField', 'DEFAULT.VALUE.charfield'='def')")
         sql(s"LOAD DATA LOCAL INPATH '$resourcesPath/restructure/data1.csv' INTO TABLE addcolumntest " +
             s"options('FILEHEADER'='intField,stringField,charField,timestampField,decimalField')")
    +    sql("CREATE TABLE hivetable stored as parquet select * from addcolumntest")
       }
     
       test("test like query on new column") {
    +    sqlContext.setConf("carbon.enable.vector.reader", "true")
    +    checkAnswer(sql("select charField from addcolumntest where charField like 'd%'"), Row("def"))
    +
    +    sqlContext.setConf("carbon.enable.vector.reader", "false")
         checkAnswer(sql("select charField from addcolumntest where charField like 'd%'"), Row("def"))
       }
     
       test("test is not null filter on new column") {
    +    sqlContext.setConf("carbon.enable.vector.reader", "true")
    +    checkAnswer(sql("select charField from addcolumntest where charField is not null"),
    +      Seq(Row("abc"), Row("def")))
    +
    +    sqlContext.setConf("carbon.enable.vector.reader", "false")
         checkAnswer(sql("select charField from addcolumntest where charField is not null"),
           Seq(Row("abc"), Row("def")))
       }
     
       test("test is null filter on new column") {
    +    sqlContext.setConf("carbon.enable.vector.reader", "true")
    +    checkAnswer(sql("select charField from addcolumntest where charField is null"), Seq())
    +
    +    sqlContext.setConf("carbon.enable.vector.reader", "false")
         checkAnswer(sql("select charField from addcolumntest where charField is null"), Seq())
       }
     
       test("test equals filter on new column") {
    +    sqlContext.setConf("carbon.enable.vector.reader", "true")
         checkAnswer(sql("select charField from addcolumntest where charField = 'abc'"), Row("abc"))
    -  }
     
    -  test("test add dictionary column and test greaterthan/lessthan filter on new column") {
    -    sql(
    -      "Alter table addcolumntest add columns(intnewField int) TBLPROPERTIES" +
    -      "('DICTIONARY_INCLUDE'='intnewField', 'DEFAULT.VALUE.intNewField'='5')")
    -    checkAnswer(sql("select charField from addcolumntest where intnewField > 2"),
    -      Seq(Row("abc"), Row("def")))
    -    checkAnswer(sql("select charField from addcolumntest where intnewField < 2"), Seq())
    +    sqlContext.setConf("carbon.enable.vector.reader", "false")
    +    checkAnswer(sql("select charField from addcolumntest where charField = 'abc'"), Row("abc"))
       }
     
    +  test("test add dictionary column and test greaterthan/lessthan filter on new column") ({
    --- End diff --
   
    why add "(" ?


---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [CARBONDATA-1310]Merge test code for AddColumnTestCa...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/3171/



---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [CARBONDATA-1310]Merge test code for AddColumnTestCa...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    Build Success with Spark 1.6, Please check CI http://144.76.159.231:8080/job/ApacheCarbonPRBuilder/577/



---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1186: [CARBONDATA-1310]Merge test code for AddColumnTestCa...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user chenliang613 commented on the issue:

    https://github.com/apache/carbondata/pull/1186
 
    LGTM


---
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 [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #1186: [CARBONDATA-1310]Merge test code for AddColum...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user asfgit closed the pull request at:

    https://github.com/apache/carbondata/pull/1186


---
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 [hidden email] or file a JIRA ticket
with INFRA.
---