Class ColumnSpec (2.2.0)

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

A representation of a column in a relational table. When listing them, column specs are returned in the same order in which they were given on import . Used by:

  • Tables

Attributes

NameDescription
name str
Output only. The resource name of the column specs. Form: projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}
data_type .data_types.DataType
The data type of elements stored in the column.
display_name str
Output only. The name of the column to show in the interface. The name can be up to 100 characters long and can consist only of ASCII Latin letters A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and must start with a letter or a digit.
data_stats .gca_data_stats.DataStats
Output only. Stats of the series of values in the column. This field may be stale, see the ancestor's Dataset.tables_dataset_metadata.stats_update_time field for the timestamp at which these stats were last updated.
top_correlated_columns Sequence[.column_spec.ColumnSpec.CorrelatedColumn]
Deprecated.
etag str
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

Classes

CorrelatedColumn

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

Identifies the table's column, and its correlation with the column this ColumnSpec describes.