dongxiaoman commented on code in PR #8713: URL: https://github.com/apache/pinot/pull/8713#discussion_r880717445
########## pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java: ########## @@ -765,31 +766,41 @@ private void handleSubquery(Expression expression, long requestId, JsonNode json * - Case-insensitive cluster * - Table name in the format of [database_name].[table_name] * - * Drop the database part if there is no existing table in the format of [database_name].[table_name], but only - * [table_name]. + * If the PinotConfiguration does not allow dots in table name, will do the below: + * Drop the prefix part for the format of [database_name].[table_name], keep only [table_name]. + * If the PinotConfiguration allows dots in table name, we will not do the split + * @param tableName the table name in the query + * @param tableCache the table case-sensitive cache + * @param routingManager the routing mananger for testing whether a route exists + * @param config the Pinot Configuration + * @return */ - private String getActualTableName(String tableName) { + @VisibleForTesting + static String getActualTableName(String tableName, TableCache tableCache, BrokerRoutingManager routingManager, Review Comment: Right now the code change has only one effect: If we allow dots in table name, we will avoid striping the `[database_name].` from the table name. This will be needed in our case, that we wish to treat `[database_name].[table_name]` as the whole actual table name. This behavior is under the feature flag so will be backwards compatible. -- 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