We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d0fc1 commit eb97b8fCopy full SHA for eb97b8f
packages/google-cloud-bigquery-storage/samples/pyarrow/append_rows_with_arrow.py
@@ -172,7 +172,7 @@ def _create_request(batches):
172
combined_table = pa.Table.from_batches(batches)
173
request = gapic_types.AppendRowsRequest()
174
request.arrow_rows.rows.serialized_record_batch = (
175
- combined_table.serialize().to_pybytes()
+ combined_table.combine_chunks().to_batches()[0].serialize().to_pybytes()
176
)
177
return request
178
0 commit comments