abhishekbafna commented on code in PR #15773:
URL: https://github.com/apache/pinot/pull/15773#discussion_r2097293483


##########
pinot-query-planner/src/main/java/org/apache/pinot/query/planner/physical/DispatchablePlanVisitor.java:
##########
@@ -137,7 +140,21 @@ public Void visitSort(SortNode node, 
DispatchablePlanContext context) {
   @Override
   public Void visitTableScan(TableScanNode node, DispatchablePlanContext 
context) {
     DispatchablePlanMetadata dispatchablePlanMetadata = 
getOrCreateDispatchablePlanMetadata(node, context);
-    
dispatchablePlanMetadata.addScannedTable(_tableCache.getActualTableName(node.getTableName()));
+
+    LogicalTableRouteInfo logicalTableRouteInfo = null;
+
+    String tableNameInNode = node.getTableName();
+    String tableName = _tableCache.getActualTableName(tableNameInNode);
+    if (tableName == null) {
+      tableName = _tableCache.getActualLogicalTableName(tableNameInNode);
+      Preconditions.checkNotNull(tableName, "Logical table config not found in 
table cache: " + tableName);

Review Comment:
   The condition message should reference `tableNameInNode` and not `tableName` 
as would be null.



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