[GitHub] carbondata pull request #2363: [WIP][CARBONDATA-2591] SDK CarbonReader suppo...

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

[GitHub] carbondata pull request #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReade...

qiuchenjian-2
Github user ajantha-bhat commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2363#discussion_r194323041
 
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReaderBuilder.java ---
    @@ -179,7 +179,11 @@ public CarbonReaderBuilder setEndPoint(String value) {
         if (isTransactionalTable) {
           table = CarbonTable.buildFromTablePath(tableName, "default", tablePath);
         } else {
    -      table = CarbonTable.buildDummyTable(tablePath);
    +      if (filterExpression != null) {
    +        table = CarbonTable.buildTable(tablePath, tableName, true);
    +      } else {
    --- End diff --
   
    Add a comment about the changes and also can you make a separate method ?
    If filterExpression is null, call CarbonTable.buildDummyTable(). else call CarbonTable.buildTable()
   
    because buidTable will not tell whether it is a table with schema or without schema (dummy table).


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReade...

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

    https://github.com/apache/carbondata/pull/2363#discussion_r194323660
 
    --- Diff: store/sdk/src/test/java/org/apache/carbondata/sdk/file/CarbonReaderTest.java ---
    @@ -105,6 +115,243 @@ public void testWriteAndReadFiles() throws IOException, InterruptedException {
         FileUtils.deleteDirectory(new File(path));
       }
     
    +  @Test
    +  public void testReadWithFilterOfTransactional() throws IOException, InterruptedException {
    --- End diff --
   
    All these code changes of this PR is for NonTransactional table.  I think test case for Transactional table is redundant.


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReade...

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

    https://github.com/apache/carbondata/pull/2363#discussion_r194324248
 
    --- Diff: store/sdk/src/test/java/org/apache/carbondata/sdk/file/CarbonReaderTest.java ---
    @@ -105,6 +115,243 @@ public void testWriteAndReadFiles() throws IOException, InterruptedException {
         FileUtils.deleteDirectory(new File(path));
       }
     
    +  @Test
    +  public void testReadWithFilterOfTransactional() throws IOException, InterruptedException {
    --- End diff --
   
    I think we should add test case for Transactional table , ensure the Transactional table  is available too


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReade...

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

    https://github.com/apache/carbondata/pull/2363#discussion_r194334876
 
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReaderBuilder.java ---
    @@ -179,7 +179,11 @@ public CarbonReaderBuilder setEndPoint(String value) {
         if (isTransactionalTable) {
           table = CarbonTable.buildFromTablePath(tableName, "default", tablePath);
         } else {
    -      table = CarbonTable.buildDummyTable(tablePath);
    +      if (filterExpression != null) {
    +        table = CarbonTable.buildTable(tablePath, tableName, true);
    +      } else {
    --- End diff --
   
    ok, done


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

    https://github.com/apache/carbondata/pull/2363
 
    LGTM.
   
    This fix need to merge to both master and 1.4 branch


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReade...

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

    https://github.com/apache/carbondata/pull/2363#discussion_r194382421
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/metadata/schema/table/CarbonTable.java ---
    @@ -218,6 +222,40 @@ public static void updateTableInfo(TableInfo tableInfo) {
         }
       }
     
    +  public static CarbonTable buildTable(
    +      String tablePath,
    +      String tableName,
    +      boolean hasFilter) throws IOException {
    --- End diff --
   
    There should not be any filter related flags in Carbon Table API, if you require this check then move to utilities. It should only has buildTable method not `hasFilter` flag.


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReade...

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

    https://github.com/apache/carbondata/pull/2363#discussion_r194595227
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/metadata/schema/table/CarbonTable.java ---
    @@ -218,6 +222,40 @@ public static void updateTableInfo(TableInfo tableInfo) {
         }
       }
     
    +  public static CarbonTable buildTable(
    +      String tablePath,
    +      String tableName,
    +      boolean hasFilter) throws IOException {
    --- End diff --
   
    ok.done


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

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


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

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


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReade...

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

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


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2363: [HOTFIX][CARBONDATA-2591] Fix SDK CarbonReader filte...

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

    https://github.com/apache/carbondata/pull/2363
 
    @ravipesala : please merge this fix to 1.4.0 branch also



---
123