You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by et...@apache.org on 2026/04/12 05:46:37 UTC
(iceberg) branch main updated: API: Include size unit in avg/max value size fields (#15939)
This is an automated email from the ASF dual-hosted git repository.
etudenhoefner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new e4d1533327 API: Include size unit in avg/max value size fields (#15939)
e4d1533327 is described below
commit e4d15333279594e95869ae8636764cd5f3b51832
Author: Eduard Tudenhoefner <et...@gmail.com>
AuthorDate: Sun Apr 12 07:46:31 2026 +0200
API: Include size unit in avg/max value size fields (#15939)
---
api/src/main/java/org/apache/iceberg/stats/FieldStatistic.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/api/src/main/java/org/apache/iceberg/stats/FieldStatistic.java b/api/src/main/java/org/apache/iceberg/stats/FieldStatistic.java
index 72058e5253..e3fd26a927 100644
--- a/api/src/main/java/org/apache/iceberg/stats/FieldStatistic.java
+++ b/api/src/main/java/org/apache/iceberg/stats/FieldStatistic.java
@@ -29,8 +29,8 @@ public enum FieldStatistic {
VALUE_COUNT(1, "value_count"),
NULL_VALUE_COUNT(2, "null_value_count"),
NAN_VALUE_COUNT(3, "nan_value_count"),
- AVG_VALUE_SIZE(4, "avg_value_size"),
- MAX_VALUE_SIZE(5, "max_value_size"),
+ AVG_VALUE_SIZE(4, "avg_value_size_in_bytes"),
+ MAX_VALUE_SIZE(5, "max_value_size_in_bytes"),
LOWER_BOUND(6, "lower_bound"),
UPPER_BOUND(7, "upper_bound"),
EXACT_BOUNDS(8, "exact_bounds");
@@ -125,13 +125,13 @@ public enum FieldStatistic {
baseFieldId + AVG_VALUE_SIZE.offset(),
AVG_VALUE_SIZE.fieldName(),
Types.IntegerType.get(),
- "Avg value size of variable-length types (String, Binary)"));
+ "Avg value size in bytes of variable-length types (String, Binary)"));
fields.add(
optional(
baseFieldId + MAX_VALUE_SIZE.offset(),
MAX_VALUE_SIZE.fieldName(),
Types.IntegerType.get(),
- "Max value size of variable-length types (String, Binary)"));
+ "Max value size in bytes of variable-length types (String, Binary)"));
}
fields.add(