praveenc7 commented on code in PR #15350:
URL: https://github.com/apache/pinot/pull/15350#discussion_r2117089820


##########
pinot-core/src/main/java/org/apache/pinot/core/data/manager/BaseTableDataManager.java:
##########
@@ -393,6 +393,18 @@ public IndexLoadingConfig fetchIndexLoadingConfig() {
     return indexLoadingConfig;
   }
 
+  public void refreshCachedTableSchema() {
+    Schema schema = ZKMetadataProvider.getTableSchema(_propertyStore, 
_tableNameWithType);
+    Preconditions.checkState(schema != null, "Failed to find schema for table: 
%s", _tableNameWithType);
+    // Update the cached table config and schema with the latest schema
+    TableConfig tableConfig = _cachedTableConfigAndSchema.getLeft();
+    if (tableConfig == null) {
+      tableConfig = ZKMetadataProvider.getTableConfig(_propertyStore, 
_tableNameWithType);
+      Preconditions.checkState(tableConfig != null, "Failed to find table 
config for table: %s", _tableNameWithType);
+    }

Review Comment:
   @Jackie-Jiang  added this for refresh 
https://github.com/apache/pinot/pull/15956 



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