You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by jackylk <gi...@git.apache.org> on 2018/11/14 12:56:36 UTC

[GitHub] carbondata pull request #2920: [HOTFIX] Improve log message in CarbonWriterB...

GitHub user jackylk opened a pull request:

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

    [HOTFIX] Improve log message in CarbonWriterBuilder

    In master the log message is not proper: 
    `AppName is not set, please use writtenBy() API to set the App Namewhich is using SDK`
    
    This PR improves log message in CarbonWriterBuilder
    
     - [X] Any interfaces changed?
     No
     - [X] Any backward compatibility impacted?
     No
     - [X] Document update required?
    No
     - [X] 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.
     rerun all test      
     - [X] 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/jackylk/incubator-carbondata patch-17

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

    https://github.com/apache/carbondata/pull/2920.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 #2920
    
----
commit b7fd6a6a9469feb99fdbc6b82907bc5c57381792
Author: Jacky Li <ja...@...>
Date:   2018-11-14T12:54:33Z

    Update CarbonWriterBuilder.java

----


---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---

[GitHub] carbondata pull request #2920: [HOTFIX] Improve log message in CarbonWriterB...

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

    https://github.com/apache/carbondata/pull/2920#discussion_r234098865
  
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonWriterBuilder.java ---
    @@ -438,13 +438,13 @@ public CarbonWriter build() throws IOException, InvalidLoadOptionException {
         Objects.requireNonNull(path, "path should not be null");
         if (this.writerType == null) {
           throw new IOException(
    -          "Writer type is not set, use withCsvInput() or withAvroInput() or withJsonInput()  "
    +          "'writerType' must be set, use withCsvInput() or withAvroInput() or withJsonInput()  "
                   + "API based on input");
         }
         if (this.writtenByApp == null || this.writtenByApp.isEmpty()) {
           throw new RuntimeException(
    -          "AppName is not set, please use writtenBy() API to set the App Name"
    -              + "which is using SDK");
    +          "'writtenBy' must be set when writting carbon files, use writtenBy() API to "
    --- End diff --
    
    ```suggestion
              "'writtenBy' must be set when writing carbon files, use writtenBy() API to "
    ```


---

[GitHub] carbondata pull request #2920: [HOTFIX] Improve log message in CarbonWriterB...

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

    https://github.com/apache/carbondata/pull/2920#discussion_r233458646
  
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonWriterBuilder.java ---
    @@ -438,13 +438,13 @@ public CarbonWriter build() throws IOException, InvalidLoadOptionException {
         Objects.requireNonNull(path, "path should not be null");
         if (this.writerType == null) {
           throw new IOException(
    -          "Writer type is not set, use withCsvInput() or withAvroInput() or withJsonInput()  "
    +          "'writerType' must be set, use withCsvInput() or withAvroInput() or withJsonInput()  "
                   + "API based on input");
         }
         if (this.writtenByApp == null || this.writtenByApp.isEmpty()) {
           throw new RuntimeException(
    -          "AppName is not set, please use writtenBy() API to set the App Name"
    -              + "which is using SDK");
    +          "'writtenBy' must be set when writting carbon files, use writtenBy() API to "
    +              + "set it, it can be the application name which using the SDK");
    --- End diff --
    
    it can be the name of the application which uses the SDK.


---

[GitHub] carbondata pull request #2920: [HOTFIX] Improve log message in CarbonWriterB...

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

    https://github.com/apache/carbondata/pull/2920#discussion_r233458367
  
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonWriterBuilder.java ---
    @@ -438,13 +438,13 @@ public CarbonWriter build() throws IOException, InvalidLoadOptionException {
         Objects.requireNonNull(path, "path should not be null");
         if (this.writerType == null) {
           throw new IOException(
    -          "Writer type is not set, use withCsvInput() or withAvroInput() or withJsonInput()  "
    +          "'writerType' must be set, use withCsvInput() or withAvroInput() or withJsonInput()  "
                   + "API based on input");
         }
         if (this.writtenByApp == null || this.writtenByApp.isEmpty()) {
           throw new RuntimeException(
    -          "AppName is not set, please use writtenBy() API to set the App Name"
    -              + "which is using SDK");
    +          "'writtenBy' must be set when writting carbon files, use writtenBy() API to "
    --- End diff --
    
    writting --> writing


---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---

[GitHub] carbondata pull request #2920: [HOTFIX] Improve log message in CarbonWriterB...

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

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


---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

    https://github.com/apache/carbondata/pull/2920
  
    LGTM
    Waiting for the builds


---

[GitHub] carbondata pull request #2920: [HOTFIX] Improve log message in CarbonWriterB...

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

    https://github.com/apache/carbondata/pull/2920#discussion_r233437690
  
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonWriterBuilder.java ---
    @@ -438,13 +438,13 @@ public CarbonWriter build() throws IOException, InvalidLoadOptionException {
         Objects.requireNonNull(path, "path should not be null");
         if (this.writerType == null) {
           throw new IOException(
    -          "Writer type is not set, use withCsvInput() or withAvroInput() or withJsonInput()  "
    +          "'writerType' must be set, use withCsvInput() or withAvroInput() or withJsonInput()  "
                   + "API based on input");
         }
         if (this.writtenByApp == null || this.writtenByApp.isEmpty()) {
           throw new RuntimeException(
    -          "AppName is not set, please use writtenBy() API to set the App Name"
    -              + "which is using SDK");
    +          "'writtenBy' must be set when writting carbon files, use writtenBy() API to " 
    --- End diff --
    
    ```suggestion
              "'writtenBy' must be set when writting carbon files, use writtenBy() API to "
    ```


---

[GitHub] carbondata pull request #2920: [HOTFIX] Improve log message in CarbonWriterB...

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

    https://github.com/apache/carbondata/pull/2920#discussion_r233470872
  
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonWriterBuilder.java ---
    @@ -438,13 +438,13 @@ public CarbonWriter build() throws IOException, InvalidLoadOptionException {
         Objects.requireNonNull(path, "path should not be null");
         if (this.writerType == null) {
           throw new IOException(
    -          "Writer type is not set, use withCsvInput() or withAvroInput() or withJsonInput()  "
    +          "'writerType' must be set, use withCsvInput() or withAvroInput() or withJsonInput()  "
                   + "API based on input");
         }
         if (this.writtenByApp == null || this.writtenByApp.isEmpty()) {
           throw new RuntimeException(
    -          "AppName is not set, please use writtenBy() API to set the App Name"
    -              + "which is using SDK");
    +          "'writtenBy' must be set when writting carbon files, use writtenBy() API to "
    +              + "set it, it can be the application name which using the SDK");
    --- End diff --
    
    ```suggestion
                  + "set it, it can be the name of the application which using the SDK");
    ```


---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

    https://github.com/apache/carbondata/pull/2920
  
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1404/



---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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


---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---

[GitHub] carbondata issue #2920: [HOTFIX] Improve log message in CarbonWriterBuilder

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

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



---