itschrispeck opened a new pull request, #13527:
URL: https://github.com/apache/pinot/pull/13527
We've seen some NPEs caused by certain combinations of filters, namely when
the filtering follows the pattern:
`WHERE NOT (<scan filter> AND <filter on transform function>)`, and the
docIds returned by the `<filter on transform function>` are less than the doc
Ids from the proceeding `<scan filter>`.
example stack trace:
```
java.lang.NullPointerException
at
org.apache.pinot.core.operator.dociditerators.ExpressionScanDocIdIterator.advance(ExpressionScanDocIdIterator.java:111)
at
org.apache.pinot.core.operator.dociditerators.AndDocIdIterator.next(AndDocIdIterator.java:51)
at
org.apache.pinot.core.operator.dociditerators.NotDocIdIterator.next(NotDocIdIterator.java:48)
at
org.apache.pinot.core.operator.DocIdSetOperator.getNextBlock(DocIdSetOperator.java:75)
at
org.apache.pinot.core.operator.DocIdSetOperator.getNextBlock(DocIdSetOperator.java:39)
```
I'm not totally sure this is the best way to fix it - the bug is easily
reproducible w/ the added unit test `testTransformDocIdsLessThanFiltered`.
--
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]