Remove deprecated DEFAULT_SEGMENT_PUSH_TYPE constant#18897
Remove deprecated DEFAULT_SEGMENT_PUSH_TYPE constant#18897Akanksha-kedia wants to merge 1 commit into
Conversation
Remove the deprecated `DEFAULT_SEGMENT_PUSH_TYPE` constant from `TableConfigBuilder` and inline the "APPEND" string literal at its two usage sites. The TODO comment requesting this removal is also deleted. The `_segmentPushType` field and `setSegmentPushType()` method remain (they are independently deprecated) so existing callers continue to work unchanged.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #18897 +/- ##
============================================
+ Coverage 63.68% 64.81% +1.13%
+ Complexity 1684 1347 -337
============================================
Files 3262 3393 +131
Lines 199826 211664 +11838
Branches 31031 33305 +2274
============================================
+ Hits 127264 137196 +9932
- Misses 62414 63396 +982
- Partials 10148 11072 +924
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
cc @Jackie-Jiang @mcvsubbu @xiangfu0 — requesting your review. What this PR doesRemoves the deprecated DEFAULT_SEGMENT_PUSH_TYPE constant from TableConfigBuilder (#17072). The constant was @deprecated with a TODO to remove it. It was used in two places inside TableConfigBuilder (field initializer + setSegmentPushType fallback). Both now use the APPEND literal directly. Not touched: the _segmentPushType field and setSegmentPushType() method (kept deprecated for backward compat), and the similarly named constant in SegmentGenerationAndPushTaskGenerator (different type, not deprecated). Change scope: 3-line removal. No behavior change, no API surface change. |
Code Review — PR #18897 (
|
|
Closing as duplicate of #17072 which covers the same change. Will consolidate into that PR and address the backward-compatibility feedback from @Jackie-Jiang there. |
Description
Remove the deprecated
DEFAULT_SEGMENT_PUSH_TYPEconstant fromTableConfigBuilder. The string literal"APPEND"is now inlined at the two usage sites (field initializer and fallback branch insetSegmentPushType()). The associated TODO comment requesting this removal is also deleted.The
_segmentPushTypefield andsetSegmentPushType()method remain in place (they are independently marked@Deprecated) so all existing callers continue to compile and behave identically.Note: the similarly-named
DEFAULT_SEGMENT_PUSH_TYPEinSegmentGenerationAndPushTaskGeneratoris a separate, non-deprecated constant of typeBatchConfigProperties.SegmentPushTypeand is intentionally left untouched.Related Issue
Fixes #17072
Changes Made
private static final String DEFAULT_SEGMENT_PUSH_TYPE = "APPEND"fromTableConfigBuilder"APPEND"// TODO: Remove 'DEFAULT_SEGMENT_PUSH_TYPE' in the future major release.commentTesting Done
mvn spotless:apply -pl pinot-spi— passesmvn checkstyle:check -pl pinot-spi— passesmvn license:format -pl pinot-spi— passesmvn -pl pinot-spi -am test-compile— compiles cleanlyUpgrade Notes
No breaking change. The removed constant was
privateand had no external visibility. All public API behavior is preserved.