Monica
03/17/2022, 8:56 AMTEXT_MATCH
function on it as predicate expression, like this:
select * from transcript where TEXT_MATCH(firstName, 'firstName*') limit 10
it will throw exception like this:
[
{
"message": "QueryExecutionError:\njava.lang.NullPointerException\n\tat org.apache.pinot.core.operator.filter.TextMatchFilterOperator.getNextBlock(TextMatchFilterOperator.java:45)\n\tat org.apache.pinot.core.operator.filter.TextMatchFilterOperator.getNextBlock(TextMatchFilterOperator.java:30)\n\tat org.apache.pinot.core.operator.BaseOperator.nextBlock(BaseOperator.java:49)\n\tat org.apache.pinot.core.operator.DocIdSetOperator.getNextBlock(DocIdSetOperator.java:62)",
"errorCode": 200
},
{
"message": "QueryExecutionError:\njava.lang.NullPointerException\n\tat org.apache.pinot.core.operator.filter.TextMatchFilterOperator.getNextBlock(TextMatchFilterOperator.java:45)\n\tat org.apache.pinot.core.operator.filter.TextMatchFilterOperator.getNextBlock(TextMatchFilterOperator.java:30)\n\tat org.apache.pinot.core.operator.BaseOperator.nextBlock(BaseOperator.java:49)\n\tat org.apache.pinot.core.operator.DocIdSetOperator.getNextBlock(DocIdSetOperator.java:62)",
"errorCode": 200
}
]
Is TEXT_MATCH
function only used by text index columns? Like Presto, if they can't predicate expressions to connectors, they will add filter operator on top of it.So maybe it's better for users to use pql if pinot supports this syntax too?Kenny Bastani
03/17/2022, 1:32 PMKenny Bastani
03/17/2022, 1:33 PM_textIndexReader
is null here, which is why that exception is getting thrown. I would open up a new issue and explain that this needs better exception handling and error reporting.Kishore G
Monica
03/18/2022, 4:28 AM