Jackie-Jiang commented on code in PR #10656:
URL: https://github.com/apache/pinot/pull/10656#discussion_r1207506425
##########
pinot-common/src/main/java/org/apache/pinot/common/utils/config/TableConfigUtils.java:
##########
@@ -444,4 +446,29 @@ public static boolean
hasPreConfiguredInstancePartitions(TableConfig tableConfig
return hasPreConfiguredInstancePartitions(tableConfig)
&&
tableConfig.getInstancePartitionsMap().containsKey(instancePartitionsType);
}
+
+ /**
+ * Get the partition column from tableConfig instance assignment config map.
+ * @param tableConfig table config
+ * @return partition column
+ */
+ public static String getPartitionColumn(TableConfig tableConfig) {
+ String partitionColumn = null;
+
+ // check getInstanceAssignmentConfigMap is null or empty,
Review Comment:
```suggestion
// check InstanceAssignmentConfigMap is null or empty,
```
--
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]