vrajat commented on code in PR #15523: URL: https://github.com/apache/pinot/pull/15523#discussion_r2057507548
########## pinot-core/src/main/java/org/apache/pinot/core/query/executor/ServerQueryExecutorV1Impl.java: ########## @@ -199,128 +191,37 @@ private InstanceResponseBlock executeInternal(ServerQueryRequest queryRequest, E return instanceResponse; } - TableDataManager tableDataManager = _instanceDataManager.getTableDataManager(tableNameWithType); - if (tableDataManager == null) { - String errorMessage = "Failed to find table: " + tableNameWithType + " on server: " - + _instanceDataManager.getInstanceId(); + TableExecutionInfo executionInfo; + try { + executionInfo = + SingleTableExecutionInfo.create(_instanceDataManager, tableNameWithType, queryRequest.getSegmentsToQuery(), + queryRequest.getOptionalSegments(), queryContext); + } catch (NoSuchElementException ne) { Review Comment: I've changed it to throw `TableNotFoundException` -- 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