Skip to content

Commit 7ccb81b

Browse files
committed
Fix e2e test: use int32 to match IntegerType schema
PyArrow defaults Python integers to int64 (LongType), but the table schema uses IntegerType (int32). Explicitly cast to pa.int32() to match.
1 parent 6234c3e commit 7ccb81b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/integration/test_execution_backends_e2e.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ def test_cow_delete_and_scan_roundtrip(self, session_catalog: RestCatalog) -> No
152152
)
153153

154154
try:
155-
# Write 10 rows
155+
# Write 10 rows - explicitly use int32 to match IntegerType schema
156156
data = pa.table(
157157
{
158-
"id": list(range(1, 11)),
158+
"id": pa.array(list(range(1, 11)), type=pa.int32()),
159159
"name": [f"row_{i}" for i in range(1, 11)],
160160
}
161161
)
@@ -205,9 +205,10 @@ def test_cow_delete_with_filter_roundtrip(self, session_catalog: RestCatalog) ->
205205
)
206206

207207
try:
208+
# Explicitly use int32 to match IntegerType schema
208209
data = pa.table(
209210
{
210-
"id": [1, 2, 3, 4, 5, 6],
211+
"id": pa.array([1, 2, 3, 4, 5, 6], type=pa.int32()),
211212
"category": ["a", "b", "a", "b", "a", "b"],
212213
}
213214
)

0 commit comments

Comments
 (0)