Skip to content

Test Classes Refactoring for setters of _textIndexColumns and ColumnProperties (IndexLoadingConfig) #14153

Merged
Jackie-Jiang merged 38 commits intoapache:masterfrom
deepthi912:JsonProperty
Oct 5, 2024
Merged

Test Classes Refactoring for setters of _textIndexColumns and ColumnProperties (IndexLoadingConfig) #14153
Jackie-Jiang merged 38 commits intoapache:masterfrom
deepthi912:JsonProperty

Conversation

@deepthi912
Copy link
Copy Markdown
Collaborator

@deepthi912 deepthi912 commented Oct 3, 2024

Follow up for #14106

Below test classes are modified:

  1. NativeAndLuceneComparisonTest
  2. NoDictionaryCompressionQueriesTest
  3. TextSearchQueriesTest
  4. FastFilteredCountTest
  5. BenchmarkNativeVsLuceneTextIndex

deepthi912 and others added 30 commits March 25, 2024 22:02
Enforce removeSegment flow with _enableDeletedKeysCompactionConsisten…
Reverse merge from master
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.78%. Comparing base (59551e4) to head (3b56cf5).
Report is 1136 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #14153      +/-   ##
============================================
+ Coverage     61.75%   63.78%   +2.03%     
- Complexity      207     1532    +1325     
============================================
  Files          2436     2621     +185     
  Lines        133233   144074   +10841     
  Branches      20636    22041    +1405     
============================================
+ Hits          82274    91901    +9627     
- Misses        44911    45372     +461     
- Partials       6048     6801     +753     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 63.75% <ø> (+2.04%) ⬆️
java-21 63.68% <ø> (+2.05%) ⬆️
skip-bytebuffers-false 63.78% <ø> (+2.03%) ⬆️
skip-bytebuffers-true 63.65% <ø> (+35.92%) ⬆️
temurin 63.78% <ø> (+2.03%) ⬆️
unittests 63.78% <ø> (+2.03%) ⬆️
unittests1 55.47% <ø> (+8.58%) ⬆️
unittests2 34.33% <ø> (+6.60%) ⬆️

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.

@deepthi912 deepthi912 changed the title Test Classes Refactoring for setters of _testIndexColumns and ColumnProperties (IndexLoadingConfig) Test Classes Refactoring for setters of _textIndexColumns and ColumnProperties (IndexLoadingConfig) Oct 3, 2024
@Jackie-Jiang Jackie-Jiang added testing Related to tests or test infrastructure cleanup Code cleanup or removal of dead code labels Oct 4, 2024
Copy link
Copy Markdown
Contributor

@Jackie-Jiang Jackie-Jiang left a comment

Choose a reason for hiding this comment

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

LGTM in general

new FieldConfig(SKILLS_TEXT_MV_COL_DICT_NAME, FieldConfig.EncodingType.DICTIONARY, FieldConfig.IndexType.TEXT,
null, null));

_tableConfig = new TableConfigBuilder(TableType.OFFLINE).setTableName(TABLE_NAME)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems we are not reusing table config here. Do we need to construct a new one from scratch?

Copy link
Copy Markdown
Collaborator Author

@deepthi912 deepthi912 Oct 4, 2024

Choose a reason for hiding this comment

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

In buildSegment() we created one which doesn't include any column properties for field configs to be used in SegmentGeneratorConfig, so tried to create a new one for this with properties included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Code cleanup or removal of dead code testing Related to tests or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants