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 Returns 
 - (::String) — Optional. The unnested column which this rule is evaluated against.
 
#column=
def column=(value) -> ::String Parameter 
 - value (::String) — Optional. The unnested column which this rule is evaluated against.
 
 Returns 
 - (::String) — Optional. The unnested column which this rule is evaluated against.
 
#dimension
def dimension() -> ::String Returns 
 - (::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 Parameter 
 - 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"]
 
 Returns 
 - (::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 Returns 
 - (::Boolean) — Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing. Only applicable to ColumnMap rules.
 
#ignore_null=
def ignore_null=(value) -> ::Boolean Parameter 
 - value (::Boolean) — Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing. Only applicable to ColumnMap rules.
 
 Returns 
 - (::Boolean) — Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing. Only applicable to ColumnMap rules.
 
#non_null_expectation
def non_null_expectation() -> ::Google::Cloud::Dataplex::V1::DataQualityRule::NonNullExpectation Returns 
 - (::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 Parameter 
 - value (::Google::Cloud::Dataplex::V1::DataQualityRule::NonNullExpectation) — ColumnMap rule which evaluates whether each column value is null.
 
 Returns 
 - (::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 Returns 
 - (::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 Parameter 
 - value (::Google::Cloud::Dataplex::V1::DataQualityRule::RangeExpectation) — ColumnMap rule which evaluates whether each column value lies between a specified range.
 
 Returns 
 - (::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 Returns 
 - (::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 Parameter 
 - value (::Google::Cloud::Dataplex::V1::DataQualityRule::RegexExpectation) — ColumnMap rule which evaluates whether each column value matches a specified regex.
 
 Returns 
 - (::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 Returns 
 - (::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 Parameter 
 - value (::Google::Cloud::Dataplex::V1::DataQualityRule::RowConditionExpectation) — Table rule which evaluates whether each row passes the specified condition.
 
 Returns 
 - (::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 Returns 
 - (::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 Parameter 
 - value (::Google::Cloud::Dataplex::V1::DataQualityRule::SetExpectation) — ColumnMap rule which evaluates whether each column value is contained by a specified set.
 
 Returns 
 - (::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 Returns 
 - (::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 Parameter 
 - value (::Google::Cloud::Dataplex::V1::DataQualityRule::StatisticRangeExpectation) — ColumnAggregate rule which evaluates whether the column aggregate statistic lies between a specified range.
 
 Returns 
 - (::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 Returns 
 - (::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 Parameter 
 - value (::Google::Cloud::Dataplex::V1::DataQualityRule::TableConditionExpectation) — Table rule which evaluates whether the provided expression is true.
 
 Returns 
 - (::Google::Cloud::Dataplex::V1::DataQualityRule::TableConditionExpectation) — Table rule which evaluates whether the provided expression is true.
 
#threshold
def threshold() -> ::Float Returns 
 -  (::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 Parameter 
 -  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)
 
 Returns 
 -  (::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 Returns 
 - (::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 Parameter 
 - value (::Google::Cloud::Dataplex::V1::DataQualityRule::UniquenessExpectation) — ColumnAggregate rule which evaluates whether the column has duplicates.
 
 Returns 
 - (::Google::Cloud::Dataplex::V1::DataQualityRule::UniquenessExpectation) — ColumnAggregate rule which evaluates whether the column has duplicates.