Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt

Use this file to discover all available pages before exploring further.

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

Read an Arrow table into an Atoti table.
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 variant can be refactored to move the load() call inside a data_transaction().
  • Parameters:
    • arrow_table (pa.Table) – The Arrow Table to load.
    • data_types (Mapping [str , DataType ]) – Data types for some or all columns of the table. Data types for non specified columns will be inferred from the dataframe dtypes.
    • default_values (Mapping [str , Constant | None ]) – See create_table()’s default_values.
    • keys (AbstractSet [str ] | Sequence [str ]) – See create_table()’s keys.
    • partitioning (str | None) – See create_table()’s partitioning.
    • table_name (str) – See create_table()’s name.
    • kwargs (Unpack [ _ReadArrowPrivateParameters ])
  • Return type: Table