Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CARBONDATA-2757][BloomDataMap] Fix bug when building bloomfilter on measure column #2526

Closed
wants to merge 1 commit into from

Conversation

kevinjmh
Copy link
Member

@kevinjmh kevinjmh commented Jul 19, 2018

  1. support to get raw data from decimal column page when building datamap in loading process

  2. convert decimal column to java datatype when rebuilding bloom datamap from query result

  3. convert boolean to byte as carbon wants

  4. fix bugs when measure column is null

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.

@CarbonDataQA
Copy link

Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7306/

@CarbonDataQA
Copy link

Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/6073/

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7312/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/6077/

@ravipesala
Copy link
Contributor

SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/5920/

@ravipesala
Copy link
Contributor

SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/5924/

@kevinjmh kevinjmh changed the title [CARBONDATA-2757][BloomDataMap] Fix bug when building bloomfilter on decimal column [CARBONDATA-2757][BloomDataMap] Fix bug when building bloomfilter on measure column Jul 20, 2018
Copy link
Contributor

@xuchuanyin xuchuanyin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to add test for all datatype for compliance.

@@ -106,4 +109,48 @@ public void setDoublePage(double[] doubleData) {
throw new UnsupportedOperationException("invalid data type: " + dataType);
}

private BigDecimal getDecimalFromRawData(int rowId) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add comment to describe when to use this method and the below method

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

// or `RawBytesReadSupport.readRow` with actual data type

// Carbon stores boolean as byte. Here we convert it for `getValueAsBytes`
if (value instanceof Boolean) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use the datatype as the condition?

Copy link
Member Author

@kevinjmh kevinjmh Jul 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. FYI, column of boolean type uses column page with inner datatype Byte, and some disagreement on DataType exists between getData and getNull in ColumnPage. I will changed that.

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7351/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/6115/

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7355/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/6119/

@ravipesala
Copy link
Contributor

SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/5936/

@xuchuanyin
Copy link
Contributor

LGTM

@asfgit asfgit closed this in 7551cc6 Jul 22, 2018
@kevinjmh kevinjmh deleted the bloom_decimal branch July 23, 2018 01:00
asfgit pushed a commit that referenced this pull request Jul 30, 2018
…measure column

1. support to get raw data from decimal column page when building datamap in loading process
2. convert decimal column to java datatype when rebuilding bloom datamap from query result
3. convert boolean to byte as carbon wants
4. fix bugs when measure column is null

This closes #2526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants