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 and use CLPMutableForwardIndexV2 by default to improve ingestion performance and efficiency #14241

Merged
merged 11 commits into from
Oct 22, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.Map;
import java.util.Set;
import org.apache.pinot.segment.local.realtime.impl.forward.CLPMutableForwardIndex;
import org.apache.pinot.segment.local.realtime.impl.forward.CLPMutableForwardIndexV2;
import org.apache.pinot.segment.local.segment.creator.impl.stats.CLPStatsProvider;
import org.apache.pinot.segment.spi.creator.ColumnStatistics;
import org.apache.pinot.segment.spi.datasource.DataSource;
Expand Down Expand Up @@ -118,6 +119,8 @@ public Set<Integer> getPartitions() {
public CLPStats getCLPStats() {
if (_forwardIndex instanceof CLPMutableForwardIndex) {
return ((CLPMutableForwardIndex) _forwardIndex).getCLPStats();
} else if (_forwardIndex instanceof CLPMutableForwardIndexV2) {
return ((CLPMutableForwardIndexV2) _forwardIndex).getCLPStats();
}
throw new IllegalStateException(
"CLP stats not available for column: " + _dataSourceMetadata.getFieldSpec().getName());
Expand Down
Loading
Loading