somandal commented on code in PR #9333:
URL: https://github.com/apache/pinot/pull/9333#discussion_r974727384


##########
pinot-core/src/main/java/org/apache/pinot/core/common/DataFetcher.java:
##########
@@ -68,9 +68,14 @@ public DataFetcher(Map<String, DataSource> dataSourceMap) {
       String column = entry.getKey();
       DataSource dataSource = entry.getValue();
       DataSourceMetadata dataSourceMetadata = 
dataSource.getDataSourceMetadata();
+      ForwardIndexReader<?> forwardIndexReader = dataSource.getForwardIndex();
+      if (forwardIndexReader == null) {
+        throw new UnsupportedOperationException(
+            String.format("Forward index disabled for column: %s, cannot 
create DataFetcher!",
+            dataSourceMetadata.getFieldSpec().getName()));
+      }

Review Comment:
   done - modified this everywhere to use `IllegalStateException`



-- 
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