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

Method write_batch

python/pyarrow/parquet/core.py:1175–1189  ·  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

1173 raise TypeError(type(table_or_batch))
1174
1175 def write_batch(self, batch, row_group_size=None):
1176 """
1177 Write RecordBatch to the Parquet file.
1178
1179 Parameters
1180 ----------
1181 batch : RecordBatch
1182 row_group_size : int, default None
1183 Maximum number of rows in written row group. If None, the
1184 row group size will be the minimum of the RecordBatch
1185 size (in rows) and 1024 * 1024. If set larger than 64 * 1024 * 1024
1186 then 64 * 1024 * 1024 will be used instead.
1187 """
1188 table = pa.Table.from_batches([batch], batch.schema)
1189 self.write_table(table, row_group_size)
1190
1191 def write_table(self, table, row_group_size=None):
1192 """

Callers 15

writeMethod · 0.95
funcFunction · 0.80
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

Calls 1

write_tableMethod · 0.95

Tested by 15

funcFunction · 0.64
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