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


##########
pinot-common/src/main/java/org/apache/pinot/common/utils/LogicalTableUtils.java:
##########
@@ -73,8 +74,11 @@ public static ZNRecord toZNRecord(LogicalTableConfig 
logicalTableConfig)
     return record;
   }
 
-  public static void validateLogicalTableName(LogicalTableConfig 
logicalTableConfig, List<String> allPhysicalTables,
-      Set<String> allBrokerTenantNames) {
+  public static void validateLogicalTableName(
+      LogicalTableConfig logicalTableConfig,
+      Predicate<String> physicalTableExistsPredicate,
+      Predicate<String> brokerTenantExistsPredicate,
+      ZkHelixPropertyStore<ZNRecord> propertyStore) {

Review Comment:
   We can do it, but one advantage I see is, if `propertyStore` can be reused 
in future for any validation. What do you think about that?



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