You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by zzcclp <gi...@git.apache.org> on 2018/04/01 02:11:28 UTC

[GitHub] carbondata pull request #2125: [CARBONDATA-2299]Support showing all segment ...

GitHub user zzcclp opened a pull request:

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

    [CARBONDATA-2299]Support showing all segment information(include visible and invisible segments)

    
    Use command 'SHOW HISTORY SEGMENTS' to show all segment information(include visible and invisible segments)
    
    Be sure to do all of the following checklist to help us incorporate 
    your contribution quickly and easily:
    
     - [ ] Any interfaces changed?
     
     - [ ] Any backward compatibility impacted?  No
     
     - [ ] Document update required?  No
    
     - [ ] Testing done
            Please provide details on 
            - Whether new unit test cases have been added or why no new tests are required?
            - How it is tested? Please attach test report.
            - Is it a performance related change? Please attach the performance test report.
            - Any additional information to help reviewers in testing this change.
           
     - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. 
    


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

    $ git pull https://github.com/zzcclp/carbondata CARBONDATA-2299

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

    https://github.com/apache/carbondata/pull/2125.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 #2125
    
----
commit a500471ec14da110130ca4f2aa43963de7e75dc1
Author: Zhang Zhichao <44...@...>
Date:   2018-04-01T02:05:05Z

    [CARBONDATA-2299]Support showing all segment information(include visible and invisible segments)
    
    Use command 'SHOW HISTORY SEGMENTS' to show all segment information(include visible and invisible segments)

----


---

[GitHub] carbondata pull request #2125: [CARBONDATA-2299]Support showing all segment ...

Posted by zzcclp <gi...@git.apache.org>.
Github user zzcclp commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2125#discussion_r178699449
  
    --- Diff: integration/spark2/src/test/scala/org/apache/spark/util/CarbonCommandSuite.scala ---
    @@ -190,4 +190,21 @@ class CarbonCommandSuite extends Spark2QueryTest with BeforeAndAfterAll {
         dropTable(tableName)
       }
     
    +  test("show history segments") {
    +    val tableName = "test_tablestatus_history"
    +    sql(s"drop table if exists ${tableName}")
    +    sql(s"create table ${tableName} (name String, age int) stored by 'carbondata' "
    +      + "TBLPROPERTIES('AUTO_LOAD_MERGE'='true','COMPACTION_LEVEL_THRESHOLD'='2,2')")
    +    val carbonTable = CarbonMetadata.getInstance().getCarbonTable("default", tableName)
    +    sql(s"insert into ${tableName} select 'abc1',1")
    +    sql(s"insert into ${tableName} select 'abc2',2")
    +    sql(s"insert into ${tableName} select 'abc3',3")
    +    assert(sql(s"show segments for table ${tableName}").collect().length == 4)
    +    assert(sql(s"show history segments for table ${tableName}").collect().length == 4)
    +    sql(s"clean files for table ${tableName}")
    +    assert(sql(s"show segments for table ${tableName}").collect().length == 2)
    +    assert(sql(s"show history segments for table ${tableName}").collect().length == 4)
    --- End diff --
    
    Done


---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3479/



---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by zzcclp <gi...@git.apache.org>.
Github user zzcclp commented on the issue:

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


---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4706/



---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4273/



---

[GitHub] carbondata pull request #2125: [CARBONDATA-2299]Support showing all segment ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3539/



---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3542/



---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by zzcclp <gi...@git.apache.org>.
Github user zzcclp commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    @ravipesala @jackylk please help to review, thanks.


---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by zzcclp <gi...@git.apache.org>.
Github user zzcclp commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    @ravipesala @jackylk please help to review, thanks.


---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on the issue:

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


---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3541/



---

[GitHub] carbondata pull request #2125: [CARBONDATA-2299]Support showing all segment ...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2125#discussion_r178457078
  
    --- Diff: integration/spark2/src/test/scala/org/apache/spark/util/CarbonCommandSuite.scala ---
    @@ -190,4 +190,21 @@ class CarbonCommandSuite extends Spark2QueryTest with BeforeAndAfterAll {
         dropTable(tableName)
       }
     
    +  test("show history segments") {
    +    val tableName = "test_tablestatus_history"
    +    sql(s"drop table if exists ${tableName}")
    +    sql(s"create table ${tableName} (name String, age int) stored by 'carbondata' "
    +      + "TBLPROPERTIES('AUTO_LOAD_MERGE'='true','COMPACTION_LEVEL_THRESHOLD'='2,2')")
    +    val carbonTable = CarbonMetadata.getInstance().getCarbonTable("default", tableName)
    +    sql(s"insert into ${tableName} select 'abc1',1")
    +    sql(s"insert into ${tableName} select 'abc2',2")
    +    sql(s"insert into ${tableName} select 'abc3',3")
    +    assert(sql(s"show segments for table ${tableName}").collect().length == 4)
    +    assert(sql(s"show history segments for table ${tableName}").collect().length == 4)
    +    sql(s"clean files for table ${tableName}")
    +    assert(sql(s"show segments for table ${tableName}").collect().length == 2)
    +    assert(sql(s"show history segments for table ${tableName}").collect().length == 4)
    --- End diff --
    
    can you assert the segment name in the collect result


---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4767/



---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by zzcclp <gi...@git.apache.org>.
Github user zzcclp commented on the issue:

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


---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4770/



---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4271/



---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4769/



---

[GitHub] carbondata issue #2125: [CARBONDATA-2299]Support showing all segment informa...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/2125
  
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4214/



---