Skip to main content

Python module for validating BigQuery sql queries with support for Jinja templated variables

Project description

Python BigQuery Validator

Python module for validating BigQuery sql queries with support for Jinja templated variables

This package was built with the goal of automating testing of sql for Apache Airflow dags.

pip install python-bigquery-validator==0.0.1a3

python -m bigquery_validator dry_run_query 'select true'

python -m bigquery_validator -f dry_run_query -p 'select true'
render_templated_query 'select date("{{ params.date }}") as date'
validate_query 'select true'
validate_query_from_file './valid_query.sql'

Build Instructions

Build steps

python3 -m pip install --upgrade build
python3 -m build

Upload

python3 -m pip install --upgrade twine
python3 -m twine upload --repository pypi dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-bigquery-validator-0.0.1a7.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page