Cloud Dataplex v1 API - Class DataQualityRule (2.4.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

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.

Only applicable to ColumnMap rules.

Property Value
TypeDescription
bool

NonNullExpectation

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

ColumnMap rule which evaluates whether each column value is null.

Property Value
TypeDescription
DataQualityRuleTypesNonNullExpectation

RangeExpectation

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

ColumnMap rule which evaluates whether each column value lies between a specified range.

Property Value
TypeDescription
DataQualityRuleTypesRangeExpectation

RegexExpectation

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

ColumnMap rule which evaluates whether each column value matches a specified regex.

Property Value
TypeDescription
DataQualityRuleTypesRegexExpectation

RowConditionExpectation

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

Table rule which evaluates whether each row 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; }

ColumnMap 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; }

ColumnAggregate 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; }

Table rule which evaluates whether the provided expression is true.

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

Property Value
TypeDescription
double

UniquenessExpectation

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

ColumnAggregate rule which evaluates whether the column has duplicates.

Property Value
TypeDescription
DataQualityRuleTypesUniquenessExpectation