From 4e6903d479633cba0d77c560160d63932c63ae5a Mon Sep 17 00:00:00 2001 From: Junwang Zhao Date: Sun, 2 Aug 2026 19:11:07 +0800 Subject: [PATCH] Remove stale VariantType transform TODO VariantType is modeled separately from PrimitiveType and rejected by primitive-scoped transforms in apache/iceberg#11324. --- pyiceberg/transforms.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyiceberg/transforms.py b/pyiceberg/transforms.py index cd0d7cebcb..5e0027a829 100644 --- a/pyiceberg/transforms.py +++ b/pyiceberg/transforms.py @@ -719,7 +719,6 @@ def transform(self, source: IcebergType) -> Callable[[S | None], S | None]: return lambda v: v def can_transform(self, source: IcebergType) -> bool: - # TODO: disallow VariantType when PyIceberg supports it. return source.is_primitive and not isinstance(source, (GeographyType, GeometryType)) def result_type(self, source: IcebergType) -> IcebergType: