aishikbh commented on code in PR #12361:
URL: https://github.com/apache/pinot/pull/12361#discussion_r1479234913
##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/startree/StarTreeBuilderUtils.java:
##########
@@ -83,6 +85,27 @@ public static List<StarTreeV2BuilderConfig>
generateBuilderConfigs(@Nullable Lis
return builderConfigs;
}
+ public static List<StarTreeV2BuilderConfig> generateBuilderConfigs(@Nullable
List<StarTreeIndexConfig> indexConfigs,
+ boolean enableDefaultStarTree, Schema schema, JsonNode segmentMetadata) {
+ List<StarTreeV2BuilderConfig> builderConfigs = new ArrayList<>();
+ if (indexConfigs != null) {
+ for (StarTreeIndexConfig indexConfig : indexConfigs) {
+ StarTreeV2BuilderConfig builderConfig =
StarTreeV2BuilderConfig.fromIndexConfig(indexConfig);
+ if (!builderConfigs.contains(builderConfig)) {
+ builderConfigs.add(builderConfig);
+ }
+ }
+ }
+ if (enableDefaultStarTree) {
Review Comment:
the current behaviour is that we add default + custom right now.
Existing `generateBuilderConfigs(@Nullable List<StarTreeIndexConfig>
indexConfigs,
boolean enableDefaultStarTree, SegmentMetadata segmentMetadata)` hints
at that as well.
--
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]