From 202f355269a4ae61f587a85266a779ba2e581439 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Thu, 22 Oct 2026 20:20:03 +0200 Subject: [PATCH] Remove unreachable timestamp-micros from `LOGICAL_FIELD_TYPE_MAPPING` timestamp-micros is handled by an explicit branch in _convert_logical_type that also honors adjust-to-utc, so the mapping entry was never used. --- pyiceberg/utils/schema_conversion.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyiceberg/utils/schema_conversion.py b/pyiceberg/utils/schema_conversion.py index 7e6343141b..fbcdf2dbf1 100644 --- a/pyiceberg/utils/schema_conversion.py +++ b/pyiceberg/utils/schema_conversion.py @@ -73,7 +73,6 @@ LOGICAL_FIELD_TYPE_MAPPING: dict[tuple[str, str], PrimitiveType] = { ("date", "int"): DateType(), ("time-micros", "long"): TimeType(), - ("timestamp-micros", "long"): TimestampType(), ("uuid", "fixed"): UUIDType(), ("uuid", "string"): UUIDType(), }