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 2020/12/01 00:35:13 UTC

[GitHub] [incubator-pinot] Jackie-Jiang commented on a change in pull request #6299: Adding custom metadata props into both segment metadata properties file and zk metadata record

Jackie-Jiang commented on a change in pull request #6299:
URL: https://github.com/apache/incubator-pinot/pull/6299#discussion_r532991651



##########
File path: pinot-core/src/main/java/org/apache/pinot/core/segment/index/metadata/SegmentMetadataImpl.java
##########
@@ -531,6 +553,12 @@ public JsonNode toJson(@Nullable Set<String> columnFilter) {
     segmentMetadata.put("creatorName", _creatorName);
     segmentMetadata.put("paddingCharacter", String.valueOf(_paddingCharacter));
 
+    ObjectNode customConfigs = JsonUtils.newObjectNode();
+    for (String key : _customMap.keySet()) {
+      customConfigs.put(key, _customMap.get(key));
+    }
+    segmentMetadata.set("custom", customConfigs);

Review comment:
       Use constant




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



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