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

Function _sanitize_table

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

Source from the content-addressed store, hash-verified

743
744
745def _sanitize_table(table, new_schema, flavor):
746 # TODO: This will not handle prohibited characters in nested field names
747 if 'spark' in flavor:
748 column_data = [table[i] for i in range(table.num_columns)]
749 return pa.Table.from_arrays(column_data, schema=new_schema)
750 else:
751 return table
752
753
754_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