Class Relation (0.2.1)

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

Represents a database relation.

Attributes

NameDescription
dependency_targets Sequence[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 Sequence[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 Sequence[str]
SQL statements to be executed before creating the relation.
post_operations Sequence[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 Sequence[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 Mapping[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.

Inheritance

builtins.object > proto.message.Message > Relation

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.