class pixeltable.types.ColumnSpec
Column specification, a dictionary representation of a column’s schema.
Exactly one of type or value must be included in the dictionary.
Optional comment for the column. Displayed in .describe() output.
User-defined metadata to associate with the column.
attr destination
Destination for storing computed output files. Only applicable for computed columns.
Can be:
- A local pathname (such as
path/to/outputs/), or
- The URI of an object store (such as
s3://my-bucket/outputs/).
When to validate media; 'on_read' or 'on_write'.
attr primary_key
Whether this column is part of the primary key. Defaults to False.
attr stored
Whether to store the column data. Defaults to True.
attr type
The column type (e.g., pxt.Image, str). Required unless value is specified.
attr value
A Pixeltable expression for computed columns. Mutually exclusive with type.Last modified on August 31, 2026