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>
13 lines
1.0 KiB
SQL
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;
|