Skip to content

Add data quality utilities and Python validation - #1

Merged
ayushdoesdev merged 6 commits into
mainfrom
chore/data-quality-and-ci
Nov 21, 2026
Merged

ayushdoesdev merged 6 commits into
mainfrom
chore/data-quality-and-ci

Conversation

@ayushdoesdev

Copy link
Copy Markdown
Owner

Summary

Adds small operational utilities around the existing FMCG Databricks Medallion pipeline without changing its existing notebooks or job behavior.

What's included

  • scripts/data_quality_checks.py: reusable PySpark assertions for required fields, unique business keys, non-negative measures, and a per-column null profile.
  • scripts/table_health_report.py: on-demand report of table row counts, Delta format/location metadata, and table-level errors across selected schemas.
  • docs/data-quality.md: Databricks usage examples and guidance on when to run the checks.
  • .github/workflows/python-validation.yml: compile Python source files on pushes and pull requests to main.
  • tests/test_data_quality_checks.py: lightweight API contract checks.

Validation

  • Reviewed the committed files through GitHub.
  • CI compiles Python files; actual PySpark DataFrame behavior should be exercised in a Databricks/Spark environment.

No existing source notebooks, table definitions, or data are modified.

@ayushdoesdev
ayushdoesdev merged commit 8084b1b into main Nov 21, 2026
1 check passed
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