deemoliu commented on code in PR #7908:
URL: https://github.com/apache/pinot/pull/7908#discussion_r1296421572


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/TableConfigUtils.java:
##########
@@ -1253,6 +1254,25 @@ public static void verifyHybridTableConfigs(String 
rawTableName, TableConfig off
           "Time column names are different for table: %s! Offline time column 
name: %s. Realtime time column name: %s",
           rawTableName, offlineTimeColumnName, realtimeTimeColumnName));
     }
+    TenantConfig offlineTenantConfig = offlineTableConfig.getTenantConfig();
+    TenantConfig realtimeTenantConfig = realtimeTableConfig.getTenantConfig();
+    Preconditions.checkNotNull(realtimeTenantConfig,
+        "Found null realtime table tenant config in hybrid table check for 
table: %s", rawTableName);
+    Preconditions.checkNotNull(offlineTableConfig,
+        "Found null offline table tenant config in hybrid table check for 
table: %s", rawTableName);
+    String offlineBroker = offlineTenantConfig.getBroker();
+    String realtimeBroker = realtimeTenantConfig.getBroker();
+    if (offlineBroker == null || realtimeBroker == null) {

Review Comment:
   @Jackie-Jiang i treat null as TagNameUtils.DEFAULT_TENANT_NAME. 
   some of units test can fail if i don't explicitly set DEFAULT_TENANT_NAME 
since default realtime broker and offline brokers might not the same. For now i 
kept the unit tests (passed extra broker in the tableConfig) and reverted 
quickstart test changes 



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

Reply via email to