atoti.Session.read_arrow()#

Session.read_arrow(arrow_table, /, *, data_types={}, default_values={}, keys=frozenset({}), partitioning=None, table_name, **kwargs)#

Read an Arrow table into an Atoti table.

Note

This is just a shortcut for:

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

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

Parameters:
Return type:

Table