Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRuleSqlAssertion
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRuleSqlAssertion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataplex_v1/classes.rb,
lib/google/apis/dataplex_v1/representations.rb,
lib/google/apis/dataplex_v1/representations.rb
Overview
Queries for rows returned by the provided SQL statement. If any rows are are
returned, this rule fails.The SQL statement needs to use BigQuery standard SQL
syntax, and must not contain any semicolons.$data() can be used to reference
the rows being evaluated, i.e. the table after all additional filters (row
filters, incremental data filters, sampling) are applied.Example: SELECT *
FROM $data() WHERE price < 0
Instance Attribute Summary collapse
-
#sql_statement ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1DataQualityRuleSqlAssertion
constructor
A new instance of GoogleCloudDataplexV1DataQualityRuleSqlAssertion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1DataQualityRuleSqlAssertion
Returns a new instance of GoogleCloudDataplexV1DataQualityRuleSqlAssertion.
2542 2543 2544 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2542 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sql_statement ⇒ String
Optional. The SQL statement.
Corresponds to the JSON property sqlStatement
2540 2541 2542 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2540 def sql_statement @sql_statement end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2547 2548 2549 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2547 def update!(**args) @sql_statement = args[:sql_statement] if args.key?(:sql_statement) end |