[GitHub] carbondata pull request #2014: [CARBONDATA-2198] Fixed bug for streaming dat...

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

[GitHub] carbondata pull request #2014: [CARBONDATA-2198] Fixed bug for streaming dat...

qiuchenjian-2
GitHub user geetikagupta16 opened a pull request:

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

    [CARBONDATA-2198] Fixed bug for streaming data for bad_records_action as REDIRECT or IGNORE

    1. Refactored streaming functionality for bad_records_action as IGNORE or REDIRECT
    2. Added related test cases
   
    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?
     
     - [ ] Document update required?
   
     - [ ] 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/geetikagupta16/incubator-carbondata CARBONDATA-2198

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

    https://github.com/apache/carbondata/pull/2014.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 #2014
   
----
commit ff972f9d32a4eb9786cb9e92c48b574789ae368b
Author: Geetika Gupta <geetika.gupta@...>
Date:   2018-02-28T10:39:48Z

    1. Refactored streaming functionality for bad_records_action as IGNORE or REDIRECT
    2. Added related test cases

----


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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

qiuchenjian-2
Github user CarbonDataQA commented on the issue:

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

    https://github.com/apache/carbondata/pull/2014
 
    @mohammadshahidkhan Please review. This issue is related to PR #1942


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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata pull request #2014: [CARBONDATA-2198] Fixed bug for streaming dat...

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

    https://github.com/apache/carbondata/pull/2014#discussion_r171463779
 
    --- Diff: hadoop/src/main/java/org/apache/carbondata/hadoop/streaming/CarbonStreamRecordWriter.java ---
    @@ -181,75 +181,81 @@ private void initializeAtFirstRow() throws IOException, InterruptedException {
           initializeAtFirstRow();
         }
     
    -    // parse and convert row
    -    currentRow.setData(rowParser.parseRow((Object[]) value));
    -    converter.convert(currentRow);
    -
         // null bit set
         nullBitSet.clear();
    -    for (int i = 0; i < dataFields.length; i++) {
    -      if (null == currentRow.getObject(i)) {
    -        nullBitSet.set(i);
    +    Object[] rowData = (Object[]) value;
    +    currentRow.setRawData(rowData);
    +    // parse and convert row
    +    currentRow.setData(rowParser.parseRow(rowData));
    +    CarbonRow updatedCarbonRow = converter.convert(currentRow);
    +    if (updatedCarbonRow == null) {
    +      output.skipRow();
    +      currentRow.clearData();
    +    } else {
    --- End diff --
   
    @geetikagupta16 Thanks for working on this
    Hope no change in the else part, only formatting changed due the if check.


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

[GitHub] carbondata pull request #2014: [CARBONDATA-2198] Fixed bug for streaming dat...

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

    https://github.com/apache/carbondata/pull/2014#discussion_r171464754
 
    --- Diff: hadoop/src/main/java/org/apache/carbondata/hadoop/streaming/CarbonStreamRecordWriter.java ---
    @@ -181,75 +181,81 @@ private void initializeAtFirstRow() throws IOException, InterruptedException {
           initializeAtFirstRow();
         }
     
    -    // parse and convert row
    -    currentRow.setData(rowParser.parseRow((Object[]) value));
    -    converter.convert(currentRow);
    -
         // null bit set
         nullBitSet.clear();
    -    for (int i = 0; i < dataFields.length; i++) {
    -      if (null == currentRow.getObject(i)) {
    -        nullBitSet.set(i);
    +    Object[] rowData = (Object[]) value;
    +    currentRow.setRawData(rowData);
    +    // parse and convert row
    +    currentRow.setData(rowParser.parseRow(rowData));
    +    CarbonRow updatedCarbonRow = converter.convert(currentRow);
    +    if (updatedCarbonRow == null) {
    +      output.skipRow();
    +      currentRow.clearData();
    +    } else {
    --- End diff --
   
    @mohammadshahidkhan  Yes, else part remains the same


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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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



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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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


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

[GitHub] carbondata issue #2014: [CARBONDATA-2198] Fixed bug for streaming data for b...

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

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


---
12