Skip to content

Commit 8e87248

Browse files
committed
fix arrow test to be compatible with old pyarrow
1 parent e7331a0 commit 8e87248

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/system/test_arrow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,6 @@ def test_to_arrow_query_with_empty_results(bigquery_client):
220220
"json_array_col",
221221
]
222222
assert table.shape == (0, 5)
223-
assert list(table.field("struct_col").type.names) == ["json_field", "int_field"]
223+
struct_type = table.field("struct_col").type
224+
assert struct_type.get_field_index("json_field") == 0
225+
assert struct_type.get_field_index("int_field") == 1

0 commit comments

Comments
 (0)