Set Up Custom SQL Monitors
Write SQL to define custom validation logic and monitor it on a schedule or on demand.
How Custom SQL works
-- ✓ Correct — returns failing rows
SELECT order_id, amount
FROM orders
WHERE amount < 0
-- ✗ Incorrect — returns a scalar; will always trigger
SELECT COUNT(*) FROM orders WHERE amount < 0Before you begin
Step 1: Set up
Step 2: Configure — Scheduled monitor
Field
Description
Step 2: Configure — On-Demand monitor
Field
Description
Including Custom SQL in the DQ Scorecard
Example
Viewing scan history with row counts
Tips and Tricks
Label invalidation
Value sum exceeds threshold
Cross-table discrepancy
Monitor Configuration Reference
Last updated