Skip to content

Commit 115e955

Browse files
committed
Fix geospatial integration test for unsupported v3 writes
1 parent 6c4ef19 commit 115e955

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/integration/test_geospatial_integration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from pyiceberg.io.pyarrow import schema_to_pyarrow
2727
from pyiceberg.schema import Schema
2828
from pyiceberg.table import TableProperties
29+
from pyiceberg.table.metadata import SUPPORTED_TABLE_FORMAT_VERSION
2930
from pyiceberg.types import GeographyType, GeometryType, IntegerType, NestedField
3031

3132

@@ -76,7 +77,8 @@ def test_write_read_roundtrip_geospatial(catalog: Catalog) -> None:
7677
table = catalog.create_table(
7778
identifier=identifier,
7879
schema=schema,
79-
properties={TableProperties.FORMAT_VERSION: "3"},
80+
# Keep this aligned with writer capabilities until v3 manifest writing is supported.
81+
properties={TableProperties.FORMAT_VERSION: str(SUPPORTED_TABLE_FORMAT_VERSION)},
8082
)
8183

8284
geom = struct.pack("<BIIdddd", 1, 2, 2, 1.0, 2.0, 3.0, 4.0)

0 commit comments

Comments
 (0)