Reference documentation and code samples for the Dataplex V1 API class Google::Cloud::Dataplex::V1::DataQualityRule.
A rule captures data quality intent about a data source.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#column
def column() -> ::String
- (::String) — Optional. The unnested column which this rule is evaluated against.
#column=
def column=(value) -> ::String
- value (::String) — Optional. The unnested column which this rule is evaluated against.
- (::String) — Optional. The unnested column which this rule is evaluated against.
#dimension
def dimension() -> ::String
- (::String) — Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are ["COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
#dimension=
def dimension=(value) -> ::String
- value (::String) — Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are ["COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
- (::String) — Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are ["COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
#ignore_null
def ignore_null() -> ::Boolean
-
(::Boolean) — Optional. Rows with
null
values will automatically fail a rule, unlessignore_null
istrue
. In that case, suchnull
rows are trivially considered passing.Only applicable to ColumnMap rules.
#ignore_null=
def ignore_null=(value) -> ::Boolean
-
value (::Boolean) — Optional. Rows with
null
values will automatically fail a rule, unlessignore_null
istrue
. In that case, suchnull
rows are trivially considered passing.Only applicable to ColumnMap rules.
-
(::Boolean) — Optional. Rows with
null
values will automatically fail a rule, unlessignore_null
istrue
. In that case, suchnull
rows are trivially considered passing.Only applicable to ColumnMap rules.
#non_null_expectation
def non_null_expectation() -> ::Google::Cloud::Dataplex::V1::DataQualityRule::NonNullExpectation
- (::Google::Cloud::Dataplex::V1::DataQualityRule::NonNullExpectation) — ColumnMap rule which evaluates whether each column value is null.
#non_null_expectation=
def non_null_expectation=(value) -> ::Google::Cloud::Dataplex::V1::DataQualityRule::NonNullExpectation
- value (::Google::Cloud::Dataplex::V1::DataQualityRule::NonNullExpectation) — ColumnMap rule which evaluates whether each column value is null.
- (::Google::Cloud::Dataplex::V1::DataQualityRule::NonNullExpectation) — ColumnMap rule which evaluates whether each column value is null.
#range_expectation
def range_expectation() -> ::Google::Cloud::Dataplex::V1::DataQualityRule::RangeExpectation
- (::Google::Cloud::Dataplex::V1::DataQualityRule::RangeExpectation) — ColumnMap rule which evaluates whether each column value lies between a specified range.
#range_expectation=
def range_expectation=(value) -> ::Google::Cloud::Dataplex::V1::DataQualityRule::RangeExpectation
- value (::Google::Cloud::Dataplex::V1::DataQualityRule::RangeExpectation) — ColumnMap rule which evaluates whether each column value lies between a specified range.
- (::Google::Cloud::Dataplex::V1::DataQualityRule::RangeExpectation) — ColumnMap rule which evaluates whether each column value lies between a specified range.
#regex_expectation
def regex_expectation() -> ::Google::Cloud::Dataplex::V1::DataQualityRule::RegexExpectation
- (::Google::Cloud::Dataplex::V1::DataQualityRule::RegexExpectation) — ColumnMap rule which evaluates whether each column value matches a specified regex.
#regex_expectation=
def regex_expectation=(value) -> ::Google::Cloud::Dataplex::V1::DataQualityRule::RegexExpectation
- value (::Google::Cloud::Dataplex::V1::DataQualityRule::RegexExpectation) — ColumnMap rule which evaluates whether each column value matches a specified regex.
- (::Google::Cloud::Dataplex::V1::DataQualityRule::RegexExpectation) — ColumnMap rule which evaluates whether each column value matches a specified regex.
#row_condition_expectation
def row_condition_expectation() -> ::Google::Cloud::Dataplex::V1::DataQualityRule::RowConditionExpectation
- (::Google::Cloud::Dataplex::V1::DataQualityRule::RowConditionExpectation) — Table rule which evaluates whether each row passes the specified condition.
#row_condition_expectation=
def row_condition_expectation=(value) -> ::Google::Cloud::Dataplex::V1::DataQualityRule::RowConditionExpectation
- value (::Google::Cloud::Dataplex::V1::DataQualityRule::RowConditionExpectation) — Table rule which evaluates whether each row passes the specified condition.
- (::Google::Cloud::Dataplex::V1::DataQualityRule::RowConditionExpectation) — Table rule which evaluates whether each row passes the specified condition.
#set_expectation
def set_expectation() -> ::Google::Cloud::Dataplex::V1::DataQualityRule::SetExpectation
- (::Google::Cloud::Dataplex::V1::DataQualityRule::SetExpectation) — ColumnMap rule which evaluates whether each column value is contained by a specified set.
#set_expectation=
def set_expectation=(value) -> ::Google::Cloud::Dataplex::V1::DataQualityRule::SetExpectation
- value (::Google::Cloud::Dataplex::V1::DataQualityRule::SetExpectation) — ColumnMap rule which evaluates whether each column value is contained by a specified set.
- (::Google::Cloud::Dataplex::V1::DataQualityRule::SetExpectation) — ColumnMap rule which evaluates whether each column value is contained by a specified set.
#statistic_range_expectation
def statistic_range_expectation() -> ::Google::Cloud::Dataplex::V1::DataQualityRule::StatisticRangeExpectation
- (::Google::Cloud::Dataplex::V1::DataQualityRule::StatisticRangeExpectation) — ColumnAggregate rule which evaluates whether the column aggregate statistic lies between a specified range.
#statistic_range_expectation=
def statistic_range_expectation=(value) -> ::Google::Cloud::Dataplex::V1::DataQualityRule::StatisticRangeExpectation
- value (::Google::Cloud::Dataplex::V1::DataQualityRule::StatisticRangeExpectation) — ColumnAggregate rule which evaluates whether the column aggregate statistic lies between a specified range.
- (::Google::Cloud::Dataplex::V1::DataQualityRule::StatisticRangeExpectation) — ColumnAggregate rule which evaluates whether the column aggregate statistic lies between a specified range.
#table_condition_expectation
def table_condition_expectation() -> ::Google::Cloud::Dataplex::V1::DataQualityRule::TableConditionExpectation
- (::Google::Cloud::Dataplex::V1::DataQualityRule::TableConditionExpectation) — Table rule which evaluates whether the provided expression is true.
#table_condition_expectation=
def table_condition_expectation=(value) -> ::Google::Cloud::Dataplex::V1::DataQualityRule::TableConditionExpectation
- value (::Google::Cloud::Dataplex::V1::DataQualityRule::TableConditionExpectation) — Table rule which evaluates whether the provided expression is true.
- (::Google::Cloud::Dataplex::V1::DataQualityRule::TableConditionExpectation) — Table rule which evaluates whether the provided expression is true.
#threshold
def threshold() -> ::Float
-
(::Float) — Optional. The minimum ratio of passing_rows / total_rows required to
pass this rule, with a range of [0.0, 1.0].
0 indicates default value (i.e. 1.0).
#threshold=
def threshold=(value) -> ::Float
-
value (::Float) — Optional. The minimum ratio of passing_rows / total_rows required to
pass this rule, with a range of [0.0, 1.0].
0 indicates default value (i.e. 1.0).
-
(::Float) — Optional. The minimum ratio of passing_rows / total_rows required to
pass this rule, with a range of [0.0, 1.0].
0 indicates default value (i.e. 1.0).
#uniqueness_expectation
def uniqueness_expectation() -> ::Google::Cloud::Dataplex::V1::DataQualityRule::UniquenessExpectation
- (::Google::Cloud::Dataplex::V1::DataQualityRule::UniquenessExpectation) — ColumnAggregate rule which evaluates whether the column has duplicates.
#uniqueness_expectation=
def uniqueness_expectation=(value) -> ::Google::Cloud::Dataplex::V1::DataQualityRule::UniquenessExpectation
- value (::Google::Cloud::Dataplex::V1::DataQualityRule::UniquenessExpectation) — ColumnAggregate rule which evaluates whether the column has duplicates.
- (::Google::Cloud::Dataplex::V1::DataQualityRule::UniquenessExpectation) — ColumnAggregate rule which evaluates whether the column has duplicates.