Skip to content

Commit eb97b8f

Browse files
committed
Fix AttributeError in append_rows_with_arrow.py
1 parent 84d0fc1 commit eb97b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/google-cloud-bigquery-storage/samples/pyarrow/append_rows_with_arrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def _create_request(batches):
172172
combined_table = pa.Table.from_batches(batches)
173173
request = gapic_types.AppendRowsRequest()
174174
request.arrow_rows.rows.serialized_record_batch = (
175-
combined_table.serialize().to_pybytes()
175+
combined_table.combine_chunks().to_batches()[0].serialize().to_pybytes()
176176
)
177177
return request
178178

0 commit comments

Comments
 (0)