From 060018502b4c07849c94051fee36f1fad09d1755 Mon Sep 17 00:00:00 2001 From: Ankit Sultana Date: Tue, 7 Jan 2025 22:36:20 -0600 Subject: [PATCH] [perf] Run Inverted Index Before Other Operators (#14764) --- .../apache/pinot/core/operator/filter/FilterOperatorUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pinot-core/src/main/java/org/apache/pinot/core/operator/filter/FilterOperatorUtils.java b/pinot-core/src/main/java/org/apache/pinot/core/operator/filter/FilterOperatorUtils.java index ac30591c6070..45f7d1a56787 100644 --- a/pinot-core/src/main/java/org/apache/pinot/core/operator/filter/FilterOperatorUtils.java +++ b/pinot-core/src/main/java/org/apache/pinot/core/operator/filter/FilterOperatorUtils.java @@ -219,7 +219,8 @@ int getPriority(BaseFilterOperator filterOperator) { if (filterOperator instanceof SortedIndexBasedFilterOperator) { return PrioritizedFilterOperator.HIGH_PRIORITY; } - if (filterOperator instanceof BitmapBasedFilterOperator) { + if (filterOperator instanceof BitmapBasedFilterOperator + || filterOperator instanceof InvertedIndexFilterOperator) { return PrioritizedFilterOperator.MEDIUM_PRIORITY; } if (filterOperator instanceof RangeIndexBasedFilterOperator