You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/06/20 01:14:55 UTC

[GitHub] [incubator-pinot] Jackie-Jiang commented on a change in pull request #4335: Refresh schema when reloading segments

Jackie-Jiang commented on a change in pull request #4335: Refresh schema when reloading segments
URL: https://github.com/apache/incubator-pinot/pull/4335#discussion_r295581444
 
 

 ##########
 File path: pinot-server/src/main/java/org/apache/pinot/server/starter/helix/HelixInstanceDataManager.java
 ##########
 @@ -180,10 +180,8 @@ public void reloadSegment(@Nonnull String tableNameWithType, @Nonnull String seg
     Preconditions.checkNotNull(tableConfig);
 
     Schema schema = null;
-    // For OFFLINE table, try to get schema for default columns
-    if (TableNameBuilder.OFFLINE.tableHasTypeSuffix(tableNameWithType)) {
-      schema = ZKMetadataProvider.getTableSchema(_propertyStore, tableNameWithType);
-    }
+    // For REALTIME and OFFLINE tables, try to get schema for default columns
 
 Review comment:
   (nit) Can you combine 182-184 into one line? The comment seems redundant here.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org