You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "zhuangdaz (via GitHub)" <gi...@apache.org> on 2023/06/16 19:44:19 UTC

[GitHub] [pinot] zhuangdaz opened a new issue, #10934: TEXT_CONTAINS fails with NullPointerException

zhuangdaz opened a new issue, #10934:
URL: https://github.com/apache/pinot/issues/10934

   I have a col enabled with native text index and my query fails with the following exception:
   ```
   [
     {
       "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))


-- 
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: commits-unsubscribe@pinot.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] zhuangdaz commented on issue #10934: TEXT_CONTAINS fails with NullPointerException

Posted by "zhuangdaz (via GitHub)" <gi...@apache.org>.
zhuangdaz commented on issue #10934:
URL: https://github.com/apache/pinot/issues/10934#issuecomment-1603246861

   More [logs](https://gist.github.com/zhuangdaz/1ebef51f28ba87bb3f420201f2d12fe0)


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang commented on issue #10934: TEXT_CONTAINS fails with NullPointerException

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on issue #10934:
URL: https://github.com/apache/pinot/issues/10934#issuecomment-1601923319

   @zhuangdaz Are you running the latest master branch or release version `0.12.1`? There should be no related changes between `0.12.0` and `0.12.1`


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang commented on issue #10934: TEXT_CONTAINS fails with NullPointerException

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on issue #10934:
URL: https://github.com/apache/pinot/issues/10934#issuecomment-1605124817

   Per the stack trace, the exception is thrown from the native text index. @atris Can you help take a look?
   Seems `ImmutableFST` is using the `OffHeapMutableBytesStore` which seems incorrect to me. We shouldn't need a mutable data structure to store immutable index.


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] zhuangdaz commented on issue #10934: TEXT_CONTAINS fails with NullPointerException

Posted by "zhuangdaz (via GitHub)" <gi...@apache.org>.
zhuangdaz commented on issue #10934:
URL: https://github.com/apache/pinot/issues/10934#issuecomment-1603262062

   @Jackie-Jiang it looks it happens when it tries to retrieve a data buffer. More detailed log: https://gist.github.com/zhuangdaz/1ebef51f28ba87bb3f420201f2d12fe0


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] zhuangdaz commented on issue #10934: TEXT_CONTAINS fails with NullPointerException

Posted by "zhuangdaz (via GitHub)" <gi...@apache.org>.
zhuangdaz commented on issue #10934:
URL: https://github.com/apache/pinot/issues/10934#issuecomment-1602698183

   we are running on release version 0.12.1. I am not 100% confident it is due to version change as we have ingested more data onto the cluster. So it is also possible some new data hits this exception that is not uncovered before. Some extra context is - `LIKE (indexedString0, '%selling%')` is running fine but it requires a full scan instead of using the text index. Hope this is helpful.


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] atris commented on issue #10934: TEXT_CONTAINS fails with NullPointerException

Posted by "atris (via GitHub)" <gi...@apache.org>.
atris commented on issue #10934:
URL: https://github.com/apache/pinot/issues/10934#issuecomment-1614877364

   I am looking into this


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org