MCPcopy Create free account
hub / github.com/apache/arrow / write_batch

Method write_batch

python/pyarrow/parquet/core.py:1184–1198  ·  view source on GitHub ↗

Write RecordBatch to the Parquet file. Parameters ---------- batch : RecordBatch row_group_size : int, default None Maximum number of rows in written row group. If None, the row group size will be the minimum of the RecordBatch

(self, batch, row_group_size=None)

Source from the content-addressed store, hash-verified

1182 raise TypeError(type(table_or_batch))
1183
1184 def write_batch(self, batch, row_group_size=None):
1185 """
1186 Write RecordBatch to the Parquet file.
1187
1188 Parameters
1189 ----------
1190 batch : RecordBatch
1191 row_group_size : int, default None
1192 Maximum number of rows in written row group. If None, the
1193 row group size will be the minimum of the RecordBatch
1194 size (in rows) and 1024 * 1024. If set larger than 64 * 1024 * 1024
1195 then 64 * 1024 * 1024 will be used instead.
1196 """
1197 table = pa.Table.from_batches([batch], batch.schema)
1198 self.write_table(table, row_group_size)
1199
1200 def write_table(self, table, row_group_size=None):
1201 """

Callers 15

writeMethod · 0.95
serialize_pandasFunction · 0.80
test_ipc_formatFunction · 0.80
exchange_echoMethod · 0.80
test_flight_do_put_limitFunction · 0.80
test_doexchange_putFunction · 0.80
test_doexchange_echoFunction · 0.80
test_doexchange_echo_v4Function · 0.80
do_exchangeMethod · 0.80
test_mock_output_streamFunction · 0.80

Calls 1

write_tableMethod · 0.95

Tested by 15

test_ipc_formatFunction · 0.64
exchange_echoMethod · 0.64
test_flight_do_put_limitFunction · 0.64
test_doexchange_putFunction · 0.64
test_doexchange_echoFunction · 0.64
test_doexchange_echo_v4Function · 0.64
do_exchangeMethod · 0.64
test_mock_output_streamFunction · 0.64
ipc_write_batchFunction · 0.64
write_batchesMethod · 0.64