Reference documentation and code samples for the Google Cloud Dataplex V1 Client class DataQualityRuleResult.
DataQualityRuleResult provides a more detailed, per-rule view of the results.
Generated from protobuf message google.cloud.dataplex.v1.DataQualityRuleResult
Namespace
Google \ Cloud \ Dataplex \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ rule
↳ passed
bool
Output only. Whether the rule passed or failed.
↳ evaluated_count
int|string
Output only. The number of rows a rule was evaluated against. This field is only valid for row-level type rules. Evaluated count can be configured to either * * include all rows (default) - with null
rows automatically failing rule evaluation, or * * exclude null
rows from the evaluated_count
, by setting ignore_nulls = true
. This field is not set for rule SqlAssertion.
↳ passed_count
int|string
Output only. The number of rows which passed a rule evaluation. This field is only valid for row-level type rules. This field is not set for rule SqlAssertion.
↳ null_count
int|string
Output only. The number of rows with null values in the specified column.
↳ pass_ratio
float
Output only. The ratio of passed_count / evaluated_count. This field is only valid for row-level type rules.
↳ failing_rows_query
string
Output only. The query to find rows that did not pass this rule. This field is only valid for row-level type rules.
↳ assertion_row_count
int|string
Output only. The number of rows returned by the SQL statement in a SQL assertion rule. This field is only valid for SQL assertion rules.
↳ debug_queries_result_sets
array< DataQualityRuleResult\DebugQueryResultSet
>
Output only. Contains the results of all debug queries for this rule. The number of result sets will correspond to the number of debug_queries .
getRule
Output only. The rule specified in the DataQualitySpec, as is.
hasRule
clearRule
setRule
Output only. The rule specified in the DataQualitySpec, as is.
$this
getPassed
Output only. Whether the rule passed or failed.
bool
setPassed
Output only. Whether the rule passed or failed.
var
bool
$this
getEvaluatedCount
Output only. The number of rows a rule was evaluated against.
This field is only valid for row-level type rules. Evaluated count can be configured to either
- include all rows (default) - with
nullrows automatically failing rule evaluation, or - exclude
nullrows from theevaluated_count, by settingignore_nulls = true. This field is not set for rule SqlAssertion.
int|string
setEvaluatedCount
Output only. The number of rows a rule was evaluated against.
This field is only valid for row-level type rules. Evaluated count can be configured to either
- include all rows (default) - with
nullrows automatically failing rule evaluation, or - exclude
nullrows from theevaluated_count, by settingignore_nulls = true. This field is not set for rule SqlAssertion.
var
int|string
$this
getPassedCount
Output only. The number of rows which passed a rule evaluation.
This field is only valid for row-level type rules. This field is not set for rule SqlAssertion.
int|string
setPassedCount
Output only. The number of rows which passed a rule evaluation.
This field is only valid for row-level type rules. This field is not set for rule SqlAssertion.
var
int|string
$this
getNullCount
Output only. The number of rows with null values in the specified column.
int|string
setNullCount
Output only. The number of rows with null values in the specified column.
var
int|string
$this
getPassRatio
Output only. The ratio of passed_count / evaluated_count.
This field is only valid for row-level type rules.
float
setPassRatio
Output only. The ratio of passed_count / evaluated_count.
This field is only valid for row-level type rules.
var
float
$this
getFailingRowsQuery
Output only. The query to find rows that did not pass this rule.
This field is only valid for row-level type rules.
string
setFailingRowsQuery
Output only. The query to find rows that did not pass this rule.
This field is only valid for row-level type rules.
var
string
$this
getAssertionRowCount
Output only. The number of rows returned by the SQL statement in a SQL assertion rule.
This field is only valid for SQL assertion rules.
int|string
setAssertionRowCount
Output only. The number of rows returned by the SQL statement in a SQL assertion rule.
This field is only valid for SQL assertion rules.
var
int|string
$this
getDebugQueriesResultSets
Output only. Contains the results of all debug queries for this rule.
The number of result sets will correspond to the number of debug_queries .
setDebugQueriesResultSets
Output only. Contains the results of all debug queries for this rule.
The number of result sets will correspond to the number of debug_queries .
$this

