ColumnSchema(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A column within a schema. Columns can be nested inside other columns.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes | |
---|---|
Name | Description |
column |
str
Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes. |
type_ |
str
Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes. |
description |
str
Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes. |
mode |
str
Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only NULLABLE , REQUIRED , and REPEATED values are
supported. Default mode is NULLABLE .
|
default_value |
str
Optional. Default value for the column. |
ordinal_position |
int
Optional. Ordinal position |
highest_indexing_type |
google.cloud.datacatalog_v1.types.ColumnSchema.IndexingType
Optional. Most important inclusion of this column. |
subcolumns |
MutableSequence[google.cloud.datacatalog_v1.types.ColumnSchema]
Optional. Schema of sub-columns. A column can have zero or more sub-columns. |
looker_column_spec |
google.cloud.datacatalog_v1.types.ColumnSchema.LookerColumnSpec
Looker specific column info of this column. This field is a member of oneof _ system_spec .
|
gc_rule |
str
Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable. |
Classes
IndexingType
IndexingType(value)
Specifies inclusion of the column in an index
Values: INDEXING_TYPE_UNSPECIFIED (0): Unspecified. INDEXING_TYPE_NONE (1): Column not a part of an index. INDEXING_TYPE_NON_UNIQUE (2): Column Part of non unique index. INDEXING_TYPE_UNIQUE (3): Column part of unique index. INDEXING_TYPE_PRIMARY_KEY (4): Column part of the primary key.
LookerColumnSpec
LookerColumnSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Column info specific to Looker System.