RussellSpitzer commented on code in PR #13056:
URL: https://github.com/apache/iceberg/pull/13056#discussion_r2093538740
##########
core/src/main/java/org/apache/iceberg/MetricsConfig.java:
##########
@@ -212,6 +212,26 @@ public void validateReferencedColumns(Schema schema) {
}
}
+ /**
+ * Validate that all referenced columns in the properties are valid columns
in the schema.
+ *
+ * @param schema schema to validate against
+ * @param props properties may contain metrics mode column overrides
+ */
+ public static void validateReferencedColumns(Schema schema, Map<String,
String> props) {
Review Comment:
Do we need to make this public?
Also for implementation could we do
from(props, null, null).validateReferencedColumns(schema)
Just looking to reduce our duplicated code here if possible, feel free to
skip if that doesn't make sense
--
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]