atoti.Session.read_parquet()#

Session.read_parquet(path, /, *, client_side_encryption=None, columns={}, data_types={}, default_values={}, keys=frozenset({}), partitioning=None, table_name=None, **kwargs)#

Read a Parquet file into a table.

Note

This is just a shortcut for:

parquet_load = tt.ParquetLoad(path, ...)
inferred_data_types = session.tables.infer_data_types(parquet_load)
table = session.create_table(
    table_name,
    data_types={**inferred_data_types, **data_types},
    default_values=...,
    keys=...,
    partitioning=...,
)
table.load(parquet_load)

The longer version unlocks better performance because it can be split to move the load() call inside a data_transaction().

Parameters:
Return type:

Table