Google Cloud Dataplex V1 Client - Class DataQualityRuleResult (0.2.3)

Reference documentation and code samples for the Google Cloud Dataplex V1 Client class DataQualityRuleResult.

DataQualityRuleResult provides a more detailed, per-rule level view of the results.

Generated from protobuf message google.cloud.dataplex.v1.DataQualityRuleResult

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ rule Google\Cloud\Dataplex\V1\DataQualityRule

The rule specified in the DataQualitySpec, as is.

↳ passed bool

Whether the rule passed or failed.

↳ evaluated_count int|string

The number of rows a rule was evaluated against. This field is only valid for ColumnMap type rules. Evaluated count can be configured to either (1) include all rows (default) - with null rows automatically failing rule evaluation OR (2) exclude null rows from the evaluated_count, by setting ignore_nulls = true

↳ passed_count int|string

The number of rows which passed a rule evaluation. This field is only valid for ColumnMap type rules.

↳ null_count int|string

The number of rows with null values in the specified column.

↳ pass_ratio float

The ratio of passed_count / evaluated_count. This field is only valid for ColumnMap type rules.

↳ failing_rows_query string

The query to find rows that did not pass this rule. Only applies to ColumnMap and RowCondition rules.

getRule

The rule specified in the DataQualitySpec, as is.

Returns
TypeDescription
Google\Cloud\Dataplex\V1\DataQualityRule|null

hasRule

clearRule

setRule

The rule specified in the DataQualitySpec, as is.

Parameter
NameDescription
var Google\Cloud\Dataplex\V1\DataQualityRule
Returns
TypeDescription
$this

getPassed

Whether the rule passed or failed.

Returns
TypeDescription
bool

setPassed

Whether the rule passed or failed.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getEvaluatedCount

The number of rows a rule was evaluated against.

This field is only valid for ColumnMap type rules. Evaluated count can be configured to either (1) include all rows (default) - with null rows automatically failing rule evaluation OR (2) exclude null rows from the evaluated_count, by setting ignore_nulls = true

Returns
TypeDescription
int|string

setEvaluatedCount

The number of rows a rule was evaluated against.

This field is only valid for ColumnMap type rules. Evaluated count can be configured to either (1) include all rows (default) - with null rows automatically failing rule evaluation OR (2) exclude null rows from the evaluated_count, by setting ignore_nulls = true

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getPassedCount

The number of rows which passed a rule evaluation.

This field is only valid for ColumnMap type rules.

Returns
TypeDescription
int|string

setPassedCount

The number of rows which passed a rule evaluation.

This field is only valid for ColumnMap type rules.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getNullCount

The number of rows with null values in the specified column.

Returns
TypeDescription
int|string

setNullCount

The number of rows with null values in the specified column.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getPassRatio

The ratio of passed_count / evaluated_count.

This field is only valid for ColumnMap type rules.

Returns
TypeDescription
float

setPassRatio

The ratio of passed_count / evaluated_count.

This field is only valid for ColumnMap type rules.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getFailingRowsQuery

The query to find rows that did not pass this rule.

Only applies to ColumnMap and RowCondition rules.

Returns
TypeDescription
string

setFailingRowsQuery

The query to find rows that did not pass this rule.

Only applies to ColumnMap and RowCondition rules.

Parameter
NameDescription
var string
Returns
TypeDescription
$this