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

Function write_table

python/pyarrow/orc.py:336–369  ·  view source on GitHub ↗
(table, where, *,
                file_version='0.12',
                batch_size=1024,
                stripe_size=64 * 1024 * 1024,
                compression='uncompressed',
                compression_block_size=65536,
                compression_strategy='speed',
                row_index_stride=10000,
                padding_tolerance=0.0,
                dictionary_key_size_threshold=0.0,
                bloom_filter_columns=None,
                bloom_filter_fpp=0.05)

Source from the content-addressed store, hash-verified

334
335
336def write_table(table, where, *,
337 file_version='0.12',
338 batch_size=1024,
339 stripe_size=64 * 1024 * 1024,
340 compression='uncompressed',
341 compression_block_size=65536,
342 compression_strategy='speed',
343 row_index_stride=10000,
344 padding_tolerance=0.0,
345 dictionary_key_size_threshold=0.0,
346 bloom_filter_columns=None,
347 bloom_filter_fpp=0.05):
348 if isinstance(where, Table):
349 warnings.warn(
350 "The order of the arguments has changed. Pass as "
351 "'write_table(table, where)' instead. The old order will raise "
352 "an error in the future.", FutureWarning, stacklevel=2
353 )
354 table, where = where, table
355 with ORCWriter(
356 where,
357 file_version=file_version,
358 batch_size=batch_size,
359 stripe_size=stripe_size,
360 compression=compression,
361 compression_block_size=compression_block_size,
362 compression_strategy=compression_strategy,
363 row_index_stride=row_index_stride,
364 padding_tolerance=padding_tolerance,
365 dictionary_key_size_threshold=dictionary_key_size_threshold,
366 bloom_filter_columns=bloom_filter_columns,
367 bloom_filter_fpp=bloom_filter_fpp
368 ) as writer:
369 writer.write(table)
370
371
372write_table.__doc__ = f"""

Callers 6

setupMethod · 0.50
setupMethod · 0.50
setupMethod · 0.50
test_total_bytesMethod · 0.50
page_viewMethod · 0.50
writeMethod · 0.50

Calls 2

ORCWriterClass · 0.85
writeMethod · 0.45

Tested by 5

setupMethod · 0.40
setupMethod · 0.40
setupMethod · 0.40
test_total_bytesMethod · 0.40
page_viewMethod · 0.40