Skip to content

Commit 63af4e1

Browse files
committed
Clarify pa.null error message: requires format-version 3+
1 parent e8b7fa6 commit 63af4e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyiceberg/io/pyarrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ def primitive(self, primitive: pa.DataType) -> PrimitiveType:
14401440
raise ValueError(
14411441
"Null type (pa.null()) is not supported in Iceberg format version "
14421442
f"{self._format_version}. Field: {field_path}. "
1443-
"Use a concrete type (string, int, boolean, etc.) or set format-version=3."
1443+
"Requires format-version=3+ or use a concrete type (string, int, boolean, etc.)."
14441444
)
14451445
return UnknownType()
14461446
elif isinstance(primitive, pa.UuidType):

0 commit comments

Comments
 (0)