Class Relation (0.5.9)

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

Represents a database relation.

Attributes

NameDescription
dependency_targets MutableSequence[google.cloud.dataform_v1beta1.types.Target]
A list of actions that this action depends on.
disabled bool
Whether this action is disabled (i.e. should not be run).
tags MutableSequence[str]
Arbitrary, user-defined tags on this action.
relation_descriptor google.cloud.dataform_v1beta1.types.RelationDescriptor
Descriptor for the relation and its columns.
relation_type google.cloud.dataform_v1beta1.types.CompilationResultAction.Relation.RelationType
The type of this relation.
select_query str
The SELECT query which returns rows which this relation should contain.
pre_operations MutableSequence[str]
SQL statements to be executed before creating the relation.
post_operations MutableSequence[str]
SQL statements to be executed after creating the relation.
incremental_table_config google.cloud.dataform_v1beta1.types.CompilationResultAction.Relation.IncrementalTableConfig
Configures INCREMENTAL_TABLE settings for this relation. Only set if relation_type is INCREMENTAL_TABLE.
partition_expression str
The SQL expression used to partition the relation.
cluster_expressions MutableSequence[str]
A list of columns or SQL expressions used to cluster the table.
partition_expiration_days int
Sets the partition expiration in days.
require_partition_filter bool
Specifies whether queries on this table must include a predicate filter that filters on the partitioning column.
additional_options MutableMapping[str, str]
Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported.

Classes

AdditionalOptionsEntry

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

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

IncrementalTableConfig

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

Contains settings for relations of type INCREMENTAL_TABLE.

RelationType

RelationType(value)

Indicates the type of this relation.

Values: RELATION_TYPE_UNSPECIFIED (0): Default value. This value is unused. TABLE (1): The relation is a table. VIEW (2): The relation is a view. INCREMENTAL_TABLE (3): The relation is an incrementalized table. MATERIALIZED_VIEW (4): The relation is a materialized view.