-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Add numRows to DataSegment #18892
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
base: master
Are you sure you want to change the base?
Add numRows to DataSegment #18892
Conversation
| if (null != availableSegmentMetadata) { | ||
| numRows = availableSegmentMetadata.getNumRows(); | ||
| } | ||
| numRows = availableSegmentMetadata == null ? null : availableSegmentMetadata.getNumRows(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
AvailableSegmentMetadata.getNumRows
| // In that case, we should use {@code numRows} from the segment polled from the coordinator. | ||
| numRows = val.getNumRows(); | ||
| } else if (availableSegmentMetadata != null) { | ||
| numRows = availableSegmentMetadata.getNumRows(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
AvailableSegmentMetadata.getNumRows
| (long) segment.getShardSpec().getPartitionNum(), | ||
| val.getNumReplicas(), | ||
| val.getNumRows(), | ||
| segment.getNumRows() != null ? segment.getNumRows() : val.getNumRows(), |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Description
DataSegment, and use it as source of truth for numRowsDataSegmentconstruction to use builder pattern for better maintainabilityKey Changes
DataSegmentDataSegmentWithLocationTestLoadableDataSegmentTestThis PR has: