cbalci commented on code in PR #17731:
URL: https://github.com/apache/pinot/pull/17731#discussion_r2835378147
##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseSingleStageBrokerRequestHandler.java:
##########
@@ -430,6 +431,16 @@ protected BrokerResponse doHandleRequest(long requestId,
String query, SqlNodeAn
LogicalTableConfig logicalTableConfig =
_tableCache.getLogicalTableConfig(rawTableName);
String database =
DatabaseUtils.extractDatabaseFromFullyQualifiedTableName(tableName);
long compilationEndTimeNs = System.nanoTime();
+
+ // Validate that physical tables are not queried with multi-cluster
routing enabled
+ try {
+ validatePhysicalTablesWithMultiClusterRouting(Set.of(tableName),
sqlNodeAndOptions.getOptions());
+ } catch (QueryException e) {
Review Comment:
Why do we catch and replace the exception here unlike MultiStage?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]