[GitHub] carbondata pull request #2790: [HOTFIX] carbon reader support open another r...

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

[GitHub] carbondata pull request #2790: [HOTFIX] carbon reader support open another r...

qiuchenjian-2
GitHub user ajantha-bhat opened a pull request:

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

    [HOTFIX] carbon reader support open another reader without closing previous reader

    [HOTFIX] carbon reader support open another reader without closing previous reader
   
   
   
    Be sure to do all of the following checklist to help us incorporate
    your contribution quickly and easily:
   
     - [ ] Any interfaces changed? No
     
     - [ ] Any backward compatibility impacted? No
     
     - [ ] Document update required? NA
   
     - [ ] Testing done
    updated UT      
     - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. NA
   


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

    $ git pull https://github.com/ajantha-bhat/carbondata sdk

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

    https://github.com/apache/carbondata/pull/2790.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 #2790
   
----
commit e22d3772d574edd0ae604bd9fe85b983fe3988c2
Author: ajantha-bhat <ajanthabhat@...>
Date:   2018-09-28T14:54:39Z

    [HOTFIX] carbon reader support open another reader without closing previous reader

----


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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2790
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/8901/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/836/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/641/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/644/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Success with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/8907/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/839/



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

[GitHub] carbondata pull request #2790: [HOTFIX] carbon reader support open another r...

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

    https://github.com/apache/carbondata/pull/2790#discussion_r221411334
 
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReaderBuilder.java ---
    @@ -115,11 +115,13 @@ public CarbonReaderBuilder withHadoopConf(Configuration conf) {
           hadoopConf = FileFactory.getConfiguration();
         }
         CarbonTable table;
    -    if (filterExpression != null) {
    -      table = CarbonTable.buildTable(tablePath, tableName, hadoopConf);
    -    } else {
    -      table = CarbonTable.buildDummyTable(tablePath);
    -    }
    +    // now always infer schema. TODO:Refactor in next version.
    +    table = CarbonTable.buildTable(tablePath, tableName, hadoopConf);
    +    //    if (filterExpression != null) {
    --- End diff --
   
    If it is useless, just remove them. We are using git, no need to comment the useless code


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

[GitHub] carbondata pull request #2790: [HOTFIX] carbon reader support open another r...

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/2790#discussion_r221415694
 
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReaderBuilder.java ---
    @@ -115,11 +115,13 @@ public CarbonReaderBuilder withHadoopConf(Configuration conf) {
           hadoopConf = FileFactory.getConfiguration();
         }
         CarbonTable table;
    -    if (filterExpression != null) {
    -      table = CarbonTable.buildTable(tablePath, tableName, hadoopConf);
    -    } else {
    -      table = CarbonTable.buildDummyTable(tablePath);
    -    }
    +    // now always infer schema. TODO:Refactor in next version.
    +    table = CarbonTable.buildTable(tablePath, tableName, hadoopConf);
    +    //    if (filterExpression != null) {
    --- End diff --
   
    yeah. OK


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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/648/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Success with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/8911/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/843/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

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


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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/866/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Success with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/8934/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

    https://github.com/apache/carbondata/pull/2790
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/675/



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

[GitHub] carbondata issue #2790: [HOTFIX] carbon reader support open another reader w...

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

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


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

[GitHub] carbondata pull request #2790: [HOTFIX] carbon reader support open another r...

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

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


---