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

Add Helper Functions in StarTreeBuilderUtils and StarTreeV2BuilderConfig #12361

Merged

Conversation

aishikbh
Copy link
Contributor

@aishikbh aishikbh commented Feb 3, 2024

Added the following helper functions:

  • generateBuilderConfigs : Generates builder configs from JsonNode segment metadata
  • generateDefaultConfig: Generates default config from JsonNode columnsMetadata
  • areStarTreeBuilderConfigsEqual: compares if 2 builderConfig lists are equal

* Added helper function to compare 2 StarTree builder configs.
* Added unit test for generateDefaultConfig from JsonNode segment metadata.
@codecov-commenter
Copy link

codecov-commenter commented Feb 3, 2024

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (ab525ee) 61.72% compared to head (fb14370) 61.68%.
Report is 8 commits behind head on master.

Files Patch % Lines
...l/startree/v2/builder/StarTreeV2BuilderConfig.java 84.44% 1 Missing and 6 partials ⚠️
...t/segment/local/startree/StarTreeBuilderUtils.java 81.81% 0 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #12361      +/-   ##
============================================
- Coverage     61.72%   61.68%   -0.04%     
  Complexity      207      207              
============================================
  Files          2426     2426              
  Lines        132667   132776     +109     
  Branches      20499    20541      +42     
============================================
+ Hits          81888    81906      +18     
- Misses        44774    44859      +85     
- Partials       6005     6011       +6     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (ø)
integration <0.01% <0.00%> (ø)
integration1 <0.01% <0.00%> (ø)
integration2 0.00% <0.00%> (ø)
java-11 61.64% <83.58%> (-0.02%) ⬇️
java-21 61.57% <83.58%> (-0.02%) ⬇️
skip-bytebuffers-false 61.67% <83.58%> (-0.04%) ⬇️
skip-bytebuffers-true 61.55% <83.58%> (+0.01%) ⬆️
temurin 61.68% <83.58%> (-0.04%) ⬇️
unittests 61.68% <83.58%> (-0.04%) ⬇️
unittests1 46.85% <0.00%> (-0.08%) ⬇️
unittests2 27.71% <83.58%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@snleee snleee left a comment

Choose a reason for hiding this comment

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

LGTM otherwise.

@snleee snleee merged commit cad8c56 into apache:master Feb 6, 2024
19 checks passed
suyashpatel98 pushed a commit to suyashpatel98/pinot that referenced this pull request Feb 28, 2024
…fig (apache#12361)

* changed some stuffs

* fixed an issue for generating default builder configs

* optimize passing segment metadata

* Add helper function and unit test

* Added helper function to compare 2 StarTree builder configs.
* Added unit test for generateDefaultConfig from JsonNode segment metadata.

* add additional unit tests.

* addressing comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants