walterddr commented on code in PR #9219:
URL: https://github.com/apache/pinot/pull/9219#discussion_r947312560


##########
pinot-core/src/main/java/org/apache/pinot/core/plan/FilterPlanNode.java:
##########
@@ -250,6 +250,9 @@ private BaseFilterOperator 
constructPhysicalOperator(FilterContext filter, int n
               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);

Review Comment:
   getting this error on ExplainPlanQueriesTest
   ```
   15:52:10.793 ServerQueryExecutorV1Impl - Exception processing requestId 0
   java.lang.IllegalStateException: Cannot apply TEXT_MATCH on column: 
textIndexCol1 without text index
        at 
com.google.common.base.Preconditions.checkState(Preconditions.java:518) 
~[guava-20.0.jar:?]
        at 
org.apache.pinot.core.plan.FilterPlanNode.constructPhysicalOperator(FilterPlanNode.java:254)
 ~[classes/:?]
        at 
org.apache.pinot.core.plan.FilterPlanNode.run(FilterPlanNode.java:92) 
~[classes/:?]
   ```



-- 
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-unsubscr...@pinot.apache.org

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


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

Reply via email to