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

Safeguard AbstractBuilder copy constructor from empty TextIndexConfig #14616

Merged

Conversation

shounakmk219
Copy link
Collaborator

@shounakmk219 shounakmk219 commented Dec 6, 2024

Refer #13948 (comment)

The PR also fixes the default value of useANDForMultiTermQueries which was being set to true via AbstractBuilder(FSTType fstType) but false when created through json creator on TextIndexConfig() with a json string missing the useANDForMultiTermQueries field. Going with false as LuceneTextIndexReader also has a false default for it

@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 64.03%. Comparing base (59551e4) to head (e22ead9).
Report is 1438 commits behind head on master.

Files with missing lines Patch % Lines
...pache/pinot/segment/spi/index/TextIndexConfig.java 0.00% 9 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #14616      +/-   ##
============================================
+ Coverage     61.75%   64.03%   +2.28%     
- Complexity      207     1571    +1364     
============================================
  Files          2436     2687     +251     
  Lines        133233   147788   +14555     
  Branches      20636    22651    +2015     
============================================
+ Hits          82274    94641   +12367     
- Misses        44911    46215    +1304     
- Partials       6048     6932     +884     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 63.98% <0.00%> (+2.27%) ⬆️
java-21 63.93% <0.00%> (+2.30%) ⬆️
skip-bytebuffers-false 64.03% <0.00%> (+2.28%) ⬆️
skip-bytebuffers-true 63.89% <0.00%> (+36.16%) ⬆️
temurin 64.03% <0.00%> (+2.28%) ⬆️
unittests 64.03% <0.00%> (+2.28%) ⬆️
unittests1 56.18% <0.00%> (+9.29%) ⬆️
unittests2 34.57% <0.00%> (+6.84%) ⬆️

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.

@swaminathanmanish swaminathanmanish merged commit a506df3 into apache:master Dec 6, 2024
21 checks passed
davecromberge pushed a commit to davecromberge/pinot that referenced this pull request Dec 10, 2024
…apache#14616)

* Safeguard AbstractBuilder copy constructor from empty TextIndexConfig

* using false as default as LuceneTextIndexReader also has a false default
@shounakmk219 shounakmk219 deleted the copy-constructor-bugfix branch December 17, 2024 09:16
yashmayya pushed a commit to yashmayya/pinot that referenced this pull request Jan 3, 2025
…apache#14616)

* Safeguard AbstractBuilder copy constructor from empty TextIndexConfig

* using false as default as LuceneTextIndexReader also has a false default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants