drexler-sky commented on code in PR #18885:
URL: https://github.com/apache/iceberg/pull/18885#discussion_r4607373113
##########
core/src/main/java/org/apache/iceberg/util/PropertyUtil.java:
##########
@@ -242,4 +249,57 @@ public static Map<String, String> applySchemaChanges(
return updatedProperties;
}
}
+
+ /**
+ * Returns properties with each per-column property in {@link
+ * TableProperties#COLUMN_PROPERTY_PREFIXES} renamed or removed to match the
new schema.
+ *
+ * <p>Property keys refer to columns of the old schema. A property is
renamed when its column or a
+ * parent of it is renamed, and removed when its column or a parent of it is
dropped. Returns the
+ * given properties if none changed.
+ *
+ * @param properties properties whose per-column keys refer to the old schema
+ * @param oldSchema schema that the property keys refer to
+ * @param newSchema schema to match
+ * @return the updated properties
Review Comment:
Simplified. Thanks!
--
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]