Skip to main content

Module schema

Module schema 

Source
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.
TableSchema
What a table promises about its rows.

Enums§

ColumnType
A column’s type, in the type spelling.
SortOrder
Which way a key column is sorted.

Traits§

TableRow
A Rust type that describes a table’s rows.