apache / apache/pinot

TEXT_CONTAINS fails with NullPointerException

Open
#10,934 5 comments 0 reactions 1 assignee Claimed by @atris View on GitHub
bug
Dominant language
Java
Stars
6.1k
Forks
1.5k
Avg merge
1d 21h
Merged PRs (30d)
189

Description

I have a col enabled with native text index and my query fails with the following exception(more detail [logs](https://gist.github.com/zhuangdaz/1ebef51f28ba87bb3f420201f2d12fe0)):
```
[
{
"errorCode": 200,
"message": "QueryExecutionError:\njava.lang.RuntimeException: Caught exception while running query: .*html.*\n\tat org.apache.pinot.segment.local.segment.index.readers.text.NativeTextIndexReader.getDocIds(NativeTextIndexReader.java:111)\n\tat org.apache.pinot.core.operator.filter.TextContainsFilterOperator.getNextBlock(TextContainsFilterOperator.java:52)\n\tat org.apache.pinot.core.operator.filter.TextContainsFilterOperator.getNextBlock(TextContainsFilterOperator.java:37)\n\tat org.apache.pinot.core.operator.BaseOperator.nextBlock(BaseOperator.java:43)\n...\nCaused by: java.lang.NullPointerException"
}
]
```

Query
```
select
indexedString0
from unified_events
where (
TEXT_CONTAINS (indexedString0, '.*selling.*')
or TEXT_CONTAINS (indexedString0, '.*force.*')
)
```

Not sure if it is introduced in version `0.12.1` since the same query worked fine with `0.12.0`. (slack [discussion](https://apache-pinot.slack.com/archives/CDRCA57FC/p1686604038217359?thread_ts=1686588899.733449&cid=CDRCA57FC))

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.