szehon-ho commented on code in PR #5215:
URL: https://github.com/apache/iceberg/pull/5215#discussion_r916072054
##########
core/src/main/java/org/apache/iceberg/MetricsConfig.java:
##########
@@ -136,50 +131,58 @@ public static MetricsConfig forPositionDelete(Table
table) {
}
/**
- * Generate a MetricsConfig for all columns based on overrides, sortOrder,
and defaultMode.
+ * Generate a MetricsConfig for all columns based on overrides, schema, and
sort order.
+ *
* @param props will be read for metrics overrides
(write.metadata.metrics.column.*) and default
* (write.metadata.metrics.default)
+ * @param schema table schema
* @param order sort order columns, will be promoted to truncate(16)
- * @param defaultMode default, if not set by user property
* @return metrics configuration
*/
- private static MetricsConfig from(Map<String, String> props, SortOrder
order, String defaultMode) {
+ private static MetricsConfig from(Map<String, String> props, Schema schema,
SortOrder order) {
+ int maxInferredDefaultColumns = PropertyUtil.propertyAsInt(props,
Review Comment:
Looks like invalid from, to will trigger exception in sublist(from, to)
anyway, was thinking a precondition would make the message clearer.
--
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]