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

Method write_batch

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

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

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