Skip to content

Commit a18997e

Browse files
committed
test: remove base handler regression test
Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
1 parent 7bc5b7a commit a18997e

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

tests/table/test_partitioning.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@
2222
import pytest
2323

2424
from pyiceberg.exceptions import ValidationError
25-
from pyiceberg.partitioning import (
26-
UNPARTITIONED_PARTITION_SPEC,
27-
PartitionField,
28-
PartitionSpec,
29-
_to_partition_representation,
30-
)
25+
from pyiceberg.partitioning import UNPARTITIONED_PARTITION_SPEC, PartitionField, PartitionSpec
3126
from pyiceberg.schema import Schema
3227
from pyiceberg.transforms import (
3328
BucketTransform,
@@ -258,13 +253,6 @@ def test_transform_consistency_with_pyarrow_transform(source_type: PrimitiveType
258253
assert t.transform(source_type)(value) == t.pyarrow_transform(source_type)(pa.array([value])).to_pylist()[0]
259254

260255

261-
def test_to_partition_representation_unsupported_type() -> None:
262-
unsupported_type = StructType(NestedField(1, "x", StringType()))
263-
264-
with pytest.raises(TypeError, match="Unsupported partition field type: struct"):
265-
_to_partition_representation(unsupported_type, "value")
266-
267-
268256
def test_deserialize_partition_field_v2() -> None:
269257
json_partition_spec = """{"source-id": 1, "field-id": 1000, "transform": "truncate[19]", "name": "str_truncate"}"""
270258

0 commit comments

Comments
 (0)