Skip to content

feat(dbt): add dataQualityAssertions coverage to csv_to_postgres scenario#277

Open
roller100 wants to merge 3 commits intoOpenLineage:mainfrom
BearingNode:feature/dbt-producer-add-test-assertions
Open

feat(dbt): add dataQualityAssertions coverage to csv_to_postgres scenario#277
roller100 wants to merge 3 commits intoOpenLineage:mainfrom
BearingNode:feature/dbt-producer-add-test-assertions

Conversation

@roller100
Copy link

Builds on the dbt producer compatibility test merged in #211.

Adds dbt-ol test to test/run.sh so test-phase events are captured alongside seed and run. Includes three expected data_quality_event.json files for stg_customers, stg_orders, and customer_analytics, each registered in config.json under the dataQualityAssertions facet tag. Event content derived from actual dbt-ol 1.23.0 output against PostgreSQL 15.

Also fixes the local debugging section of producer/dbt/README.md, which still referenced run_dbt_tests.sh — a script removed in #211 — replacing it with the current docker compose + run.sh workflow.

roller100 (BearingNode) added 3 commits March 18, 2026 13:04
Add `dbt-ol test` to test/run.sh so test-phase events are captured
alongside seed and run events.

Add three expected event files for the dataQualityAssertions facet:
- events/customers/data_quality_event.json (not_null + unique on customer_id)
- events/orders/data_quality_event.json (not_null on customer_id, not_null + unique on order_id)
- events/analytics/data_quality_event.json (not_null on customer_id + total_revenue, unique on customer_id)

Register all three as test cases in config.json with the dataQualityAssertions
facet tag. Expected event content derived from actual dbt-ol 1.23.0 output
against a live PostgreSQL 15 instance.

Signed-off-by: roller100 (BearingNode) <contact@bearingnode.com>
The local debugging section referenced run_dbt_tests.sh, which was
removed during the PR OpenLineage#211 cleanup. Replace with accurate instructions
using docker compose + run.sh directly.

Update the workflow description, test structure layout, and validation
scope (add dataQualityAssertions) to match the current architecture.

Signed-off-by: roller100 (BearingNode) <contact@bearingnode.com>
Add **/events/*.jsonl to the existing local-testing ignore block.
dbt-ol writes events.jsonl before extraction; this prevents it from
being accidentally staged in any producer's events directory.

Signed-off-by: roller100 (BearingNode) <contact@bearingnode.com>
@mobuchowski mobuchowski requested a review from tnazarew March 19, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant