Indian-boult opened a new pull request, #20331: URL: https://github.com/apache/pinot/pull/20331
Fixes #20330 The partial range scan in `RangeIndexBasedFilterOperator.evaluateLegacyRangeFilter` now uses `getNextBlockWithoutNullHandling()` instead of `getTrues()`. With null handling enabled and a column that holds nulls, `getTrues()` returns an `AndDocIdSet` whose iterator is not a `ScanBasedDocIdIterator`, and the cast right after it threw. The operator still leaves the null rows out of the final result through `BaseColumnFilterOperator.getTrues()`, so the scan does not need to do it again. This affects every multi-value column with a range index, since those always use the version 1 index, and single-value columns configured with `rangeIndexVersion` 1. I added `NullHandlingEnabledQueriesTest.testRangeFilterOnMultiValueColumnWithLegacyRangeIndex`, which runs `>`, `NOT >` and `BETWEEN` on a nullable multi-value column with a range index. It fails on master with the ClassCastException and passes with this change. I also ran the rest of `NullHandlingEnabledQueriesTest`, `RangeQueriesTest`, `NullEnabledQueriesTest`, `FilterOperatorUtilsTest` and `ExplainPlanQueriesTest`, plus the pinot-core spotless, checkstyle and license checks. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
