Session.read_arrow(Read an Arrow table into an Atoti table.
arrow_table: pa.Table,
/,
*,
data_types: Mapping[str, DataType] =frozendict({}),
default_values: Mapping[str, Constant | None] =frozendict({}),
keys: AbstractSet[str] | Sequence[str] =frozenset({}),
partitioning: str | None =None,
table_name: str,
) → Table
This is just a shortcut for:The longer variant can be refactored to move the
load() call inside a data_transaction().Parameters
arrow_table
The Arrow Table to load.data_types
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
Seecreate_table()’s default_values.
keys
Seecreate_table()’s keys.
partitioning
Seecreate_table()’s partitioning.
table_name
Seecreate_table()’s name.