9aman commented on code in PR #15347: URL: https://github.com/apache/pinot/pull/15347#discussion_r2008746390
########## pinot-spi/src/main/java/org/apache/pinot/spi/utils/IngestionConfigUtils.java: ########## @@ -101,11 +101,38 @@ public static List<Map<String, String>> getStreamConfigMaps(TableConfig tableCon return streamConfigMaps; } if (tableConfig.getIndexingConfig() != null && tableConfig.getIndexingConfig().getStreamConfigs() != null) { - return Arrays.asList(tableConfig.getIndexingConfig().getStreamConfigs()); + return List.of(tableConfig.getIndexingConfig().getStreamConfigs()); Review Comment: Unrelated to this PR: `getStreamConfigMaps()` seems to be performing validations on the streaamConfigMaps in case of multi-stream ingestion. This should not be done in a getter. The `validate` function in the `TableConfigUtils` relies on this to perform these checks when the `tableConfig` is added/ updated. Ideally, there should be a separate function for this. -- 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