Skip to content

Commit eb22364

Browse files
committed
use older pyarrow.record_batch constructor
1 parent 1365208 commit eb22364

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/test__pandas_helpers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,10 +1874,10 @@ def test__download_table_bqstorage_shuts_down_workers(
18741874
]
18751875
)
18761876
arrow_rows = pyarrow.record_batch(
1877-
{
1878-
"int_col": [0, 1, 2],
1879-
"str_col": ["a", "b", "c"],
1880-
},
1877+
[
1878+
pyarrow.array([0, 1, 2], type=pyarrow.int64()),
1879+
pyarrow.array(["a", "b", "c"], type=pyarrow.string()),
1880+
],
18811881
schema=arrow_schema,
18821882
)
18831883
session = google.cloud.bigquery_storage_v1.types.ReadSession()

0 commit comments

Comments
 (0)