Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Format python code
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Sep 11, 2024
commit e65f45d2b3b45991ae55e4c926fabcf8f36be152
5 changes: 4 additions & 1 deletion bindings/python/tests/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import pytest
from pyiceberg_core import transform


def test_identity_transform():
arr = pa.array([1, 2])
result = transform.identity(arr)
Expand Down Expand Up @@ -89,8 +90,10 @@ def test_truncate_transform():
expected = pa.array(["this ", "hi my"])
assert result == expected


def test_identity_transform_with_direct_import():
from pyiceberg_core.transform import identity

arr = pa.array([1, 2])
result = identity(arr)
assert result == arr
assert result == arr