Files
semprini-domain-cdp-digital…/canonical-party/trino/smoke.sql
T
paulandClaude Opus 5 cfb32d2d1b Add Canonical Party as generated in semprini-blog-dataproducts
The canonical data product for the Digital Core domain, copied unchanged from
the blog repository's products/canonical-party (generated by /agent-product
from data_model/data_products/canonical.md, 65 of 65 checks on the blog's
stack on 2026-09-09). The next commit adapts it to the domain platform.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 23:21:27 +12:00

13 lines
1.0 KiB
SQL

-- Canonical Party: analytic SQL smoke test, run by `semprini-blog-dataproducts test`
-- through Trino's `lake` catalog. One statement per table and each must succeed.
SELECT 'party' AS table_name, count(*) AS row_count FROM lake.canonical_party.party;
SELECT 'address' AS table_name, count(*) AS row_count FROM lake.canonical_party.address;
SELECT 'person' AS table_name, count(*) AS row_count FROM lake.canonical_party.person;
SELECT 'company' AS table_name, count(*) AS row_count FROM lake.canonical_party.company;
SELECT 'party_role' AS table_name, count(*) AS row_count FROM lake.canonical_party.party_role;
SELECT 'customer' AS table_name, count(*) AS row_count FROM lake.canonical_party.customer;
SELECT 'contact_address' AS table_name, count(*) AS row_count FROM lake.canonical_party.contact_address;
SELECT 'party_role_contact_address' AS table_name, count(*) AS row_count FROM lake.canonical_party.party_role_contact_address;
SELECT 'party_association' AS table_name, count(*) AS row_count FROM lake.canonical_party.party_association;