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

Function _sanitize_table

python/pyarrow/parquet/core.py:742–748  ·  view source on GitHub ↗
(table, new_schema, flavor)

Source from the content-addressed store, hash-verified

740
741
742def _sanitize_table(table, new_schema, flavor):
743 # TODO: This will not handle prohibited characters in nested field names
744 if 'spark' in flavor:
745 column_data = [table[i] for i in range(table.num_columns)]
746 return pa.Table.from_arrays(column_data, schema=new_schema)
747 else:
748 return table
749
750
751_parquet_writer_arg_docs = """version : {"1.0", "2.4", "2.6"}, default "2.6"

Callers 1

write_tableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected