Skip to content

Commit b00dbfe

Browse files
shauryachatsShaurya Chaturvedi
andauthored
[bugfix] Fixing the TableType val passed for unavailable segments in physical optimizer (#16660)
Co-authored-by: Shaurya Chaturvedi <[email protected]>
1 parent 0cd787f commit b00dbfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pinot-query-planner/src/main/java/org/apache/pinot/query/planner/physical/v2/opt/rules/LeafStageWorkerAssignmentRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private PhysicalTableScan assignTableScan(PhysicalTableScan tableScan, long requ
174174
}
175175
if (!routingTable.getUnavailableSegments().isEmpty()) {
176176
// Set unavailable segments in context, keyed by PRelNode ID.
177-
segmentUnavailableMap.put(TableNameBuilder.forType(TableType.valueOf(tableName)).tableNameWithType(tableName),
177+
segmentUnavailableMap.put(TableNameBuilder.forType(TableType.valueOf(tableType)).tableNameWithType(tableName),
178178
new HashSet<>(routingTable.getUnavailableSegments()));
179179
}
180180
}

0 commit comments

Comments
 (0)