Skip to main content

The `bq-validator` command enables us to validate BigQuery queries.

Project description

Test python Package version Supported Python versions

bq-validator

This is a yet another python-based BigQuery query validator.

The bq query --dry_run command enables us to validate queries. However, the bq command doesn't support service account impersonation, even though it supports workload identity federation credentials at Google Cloud SDK 390.0.0. The bq-validator command would be useful, when we take advantage of service account impersonation to validate BigQuery queries.

Install

The package is available on pypi

pip install -U bq-validator

How to use

$ bq-validator --help
Usage: bq-validator [OPTIONS] PATH

  Validate BigQuery queries

  PATH is either of a SQL file path or a directory. When it is a directory,
  the command recursively validates all SQL files in the directory.

Options:
  --quota_project TEXT            BigQuery client project ID
  --client_project TEXT           BigQuery client project ID
  --client_location TEXT          BigQuery client location
  --impersonate_service_account TEXT
                                  Impersonate service account email
  --num_parallels INTEGER         Number of parallel query validations
  --verbose                       Enable verbose output
  --version                       Show the version and exit.
  --help                          Show this message and exit.

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

bq_validator-0.7.2.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

bq_validator-0.7.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file bq_validator-0.7.2.tar.gz.

File metadata

  • Download URL: bq_validator-0.7.2.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for bq_validator-0.7.2.tar.gz
Algorithm Hash digest
SHA256 61f258686122f86ffc8a0dd7ecddba155be4116e25f0e5d06a13a5ac82d4bc63
MD5 e25902459349c7a3737ceeabbdc46719
BLAKE2b-256 e2fd3fe1ff0cb87fc9f3f03eab9504fb78efdf6dd0a0986515126e002c30c8fe

See more details on using hashes here.

File details

Details for the file bq_validator-0.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for bq_validator-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 17a972d29037ffb907014784d4a2d5781e81e98c4f37435876d63c88dee67c10
MD5 ada905273d5cf492b7af6c52d95bc664
BLAKE2b-256 fa37224e4dd3bcf45374df9a633d57bfd0da97d6a37904982c7307ee579102ad

See more details on using hashes here.

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