Class ColumnSchema (2.0.2)

ColumnSchema(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Representation of a column within a schema. Columns could be nested inside other columns.

Attributes

NameDescription
column str
Required. Name of the column.
type str
Required. Type of the column.
description str
Optional. Description of the column. Default value is an empty string.
mode str
Optional. A column's mode indicates whether the values in this column are required, nullable, etc. Only NULLABLE, REQUIRED and REPEATED are supported. Default mode is NULLABLE.
subcolumns Sequence[.schema.ColumnSchema]
Optional. Schema of sub-columns. A column can have zero or more sub-columns.