This is an automated email from the ASF dual-hosted git repository. jackie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push: new 7818167fea refine error msg when applying TextMatch on column with text index (#9219) 7818167fea is described below commit 7818167fea7d3581e7f885b0aeeae8c7d1b6a4c0 Author: Xiaobing <61892277+klsi...@users.noreply.github.com> AuthorDate: Tue Aug 16 10:22:21 2022 -0700 refine error msg when applying TextMatch on column with text index (#9219) --- .../src/main/java/org/apache/pinot/core/plan/FilterPlanNode.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pinot-core/src/main/java/org/apache/pinot/core/plan/FilterPlanNode.java b/pinot-core/src/main/java/org/apache/pinot/core/plan/FilterPlanNode.java index b04ae67e72..97a6a420de 100644 --- a/pinot-core/src/main/java/org/apache/pinot/core/plan/FilterPlanNode.java +++ b/pinot-core/src/main/java/org/apache/pinot/core/plan/FilterPlanNode.java @@ -250,6 +250,9 @@ public class FilterPlanNode implements PlanNode { return new TextContainsFilterOperator(textIndexReader, (TextContainsPredicate) predicate, numDocs); case TEXT_MATCH: textIndexReader = dataSource.getTextIndex(); + Preconditions + .checkState(textIndexReader != null, "Cannot apply TEXT_MATCH on column: %s without text index", + column); // We could check for real time and segment Lucene reader, but easier to check the other way round if (textIndexReader instanceof NativeTextIndexReader || textIndexReader instanceof NativeMutableTextIndex) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org