Cloud Dataplex v1 API - Class DataQualityRule (2.13.0)

public sealed class DataQualityRule : IMessage<DataQualityRule>, IEquatable<DataQualityRule>, IDeepCloneable<DataQualityRule>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Dataplex v1 API class DataQualityRule.

A rule captures data quality intent about a data source.

Inheritance

object > DataQualityRule

Namespace

Google.Cloud.Dataplex.V1

Assembly

Google.Cloud.Dataplex.V1.dll

Constructors

DataQualityRule()

public DataQualityRule()

DataQualityRule(DataQualityRule)

public DataQualityRule(DataQualityRule other)
Parameter
NameDescription
otherDataQualityRule

Properties

Column

public string Column { get; set; }

Optional. The unnested column which this rule is evaluated against.

Property Value
TypeDescription
string

Description

public string Description { get; set; }

Optional. Description of the rule.

  • The maximum length is 1,024 characters.
Property Value
TypeDescription
string

Dimension

public string Dimension { get; set; }

Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are ["COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]

Property Value
TypeDescription
string

IgnoreNull

public bool IgnoreNull { get; set; }

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.

This field is only valid for the following type of rules:

  • RangeExpectation
  • RegexExpectation
  • SetExpectation
  • UniquenessExpectation
Property Value
TypeDescription
bool

Name

public string Name { get; set; }

Optional. A mutable name for the rule.

  • The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-).
  • The maximum length is 63 characters.
  • Must start with a letter.
  • Must end with a number or a letter.
Property Value
TypeDescription
string

NonNullExpectation

public DataQualityRule.Types.NonNullExpectation NonNullExpectation { get; set; }

Row-level rule which evaluates whether each column value is null.

Property Value
TypeDescription
DataQualityRuleTypesNonNullExpectation

RangeExpectation

public DataQualityRule.Types.RangeExpectation RangeExpectation { get; set; }

Row-level rule which evaluates whether each column value lies between a specified range.

Property Value
TypeDescription
DataQualityRuleTypesRangeExpectation

RegexExpectation

public DataQualityRule.Types.RegexExpectation RegexExpectation { get; set; }

Row-level rule which evaluates whether each column value matches a specified regex.

Property Value
TypeDescription
DataQualityRuleTypesRegexExpectation

RowConditionExpectation

public DataQualityRule.Types.RowConditionExpectation RowConditionExpectation { get; set; }

Row-level rule which evaluates whether each row in a table passes the specified condition.

Property Value
TypeDescription
DataQualityRuleTypesRowConditionExpectation

RuleTypeCase

public DataQualityRule.RuleTypeOneofCase RuleTypeCase { get; }
Property Value
TypeDescription
DataQualityRuleRuleTypeOneofCase

SetExpectation

public DataQualityRule.Types.SetExpectation SetExpectation { get; set; }

Row-level rule which evaluates whether each column value is contained by a specified set.

Property Value
TypeDescription
DataQualityRuleTypesSetExpectation

StatisticRangeExpectation

public DataQualityRule.Types.StatisticRangeExpectation StatisticRangeExpectation { get; set; }

Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range.

Property Value
TypeDescription
DataQualityRuleTypesStatisticRangeExpectation

TableConditionExpectation

public DataQualityRule.Types.TableConditionExpectation TableConditionExpectation { get; set; }

Aggregate rule which evaluates whether the provided expression is true for a table.

Property Value
TypeDescription
DataQualityRuleTypesTableConditionExpectation

Threshold

public double Threshold { get; set; }

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).

This field is only valid for row-level type rules.

Property Value
TypeDescription
double

UniquenessExpectation

public DataQualityRule.Types.UniquenessExpectation UniquenessExpectation { get; set; }

Row-level rule which evaluates whether each column value is unique.

Property Value
TypeDescription
DataQualityRuleTypesUniquenessExpectation