Expand description
Table schemas. Table schemas: what a table promises about its columns.
A schematised table is worth the trouble because the cluster then checks every write against it, stores columns in their own type rather than as YSON, and can sort and merge them. An unschematised one accepts anything and finds out later.
The wire form is a YSON list of column dicts, carrying attributes:
<strict=%true;unique_keys=%false>[{name="key";type="string";required=%true};…]Build one by hand with TableSchema::new, or derive it from the struct
the rows already have — see TableRow.
Reference: https://ytsaurus.tech/docs/en/user-guide/storage/static-schema
Structs§
- Column
- One column of a table.
- Table
Schema - What a table promises about its rows.
Enums§
- Column
Type - A column’s type, in the
typespelling. - Sort
Order - Which way a key column is sorted.
Traits§
- Table
Row - A Rust type that describes a table’s rows.