aokolnychyi commented on a change in pull request #2257:
URL: https://github.com/apache/iceberg/pull/2257#discussion_r588752778
##########
File path: core/src/main/java/org/apache/iceberg/MetricsConfig.java
##########
@@ -46,6 +47,35 @@ public static MetricsConfig getDefault() {
return spec;
}
+ public static Map<String, String> updateProperties(Map<String, String>
props, List<String> deletes,
+ Map<String, String>
renames) {
+ if (!props.keySet().stream().anyMatch(key ->
key.startsWith(TableProperties.METRICS_MODE_COLUMN_CONF_PREFIX))) {
+ return props;
+ } else {
+ Map<String, String> updatedProperties = Maps.newHashMap();
+ // Put all of the non metrics columns we aren't modifying
+ props.keySet().stream().forEach(key -> {
Review comment:
nit: could be simply `props.keySet().forEach`
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]