Reference documentation and code samples for the Cloud Dataplex v1 API class DataQualityRule.Types.SqlAssertion.
A SQL statement that is evaluated to return rows that match an invalid
state. If any rows are are returned, this rule fails.
The SQL statement must use BigQuery standard SQL syntax, and must not
contain any semicolons.
You can use the data reference parameter ${data()} to reference the
source table with all of its precondition filters applied. Examples of
precondition filters include row filters, incremental data filters, and
sampling. For more information, see Data reference
parameter.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-25 UTC."],[[["The page provides documentation for the `DataQualityRule.Types.SqlAssertion` class within the Google Cloud Dataplex V1 API."],["The `SqlAssertion` class is used to define SQL statements that identify invalid data rows within a data quality rule, returning those rows to signify that the rule has failed."],["This class is implemented using various interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The documentation outlines the availability of multiple versions of this class, from version 1.0.0 up to the latest, 3.6.0, with a focus on version 3.5.0."],["`SqlAssertion` class can be constructed with default values, or given another object of its type, it contains one property, `SqlStatement`, which holds the SQL assertion to be executed."]]],[]]