{"id":17674239,"url":"https://github.com/hirosassa/bqvalid","last_synced_at":"2026-01-18T01:41:43.878Z","repository":{"id":37013433,"uuid":"504798333","full_name":"hirosassa/bqvalid","owner":"hirosassa","description":"SQL linter tool for BigQuery GoogleSQL (formerly known as StandardSQL).","archived":false,"fork":false,"pushed_at":"2024-10-14T08:26:35.000Z","size":54,"stargazers_count":17,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T20:42:58.753Z","etag":null,"topics":["bigquery","google","linter","sql"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hirosassa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-18T09:23:50.000Z","updated_at":"2024-06-16T21:18:44.000Z","dependencies_parsed_at":"2024-06-19T02:58:34.313Z","dependency_job_id":"4dec7b58-ccb9-47b8-84ef-2d6250bba5f8","html_url":"https://github.com/hirosassa/bqvalid","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosassa%2Fbqvalid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosassa%2Fbqvalid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosassa%2Fbqvalid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosassa%2Fbqvalid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hirosassa","download_url":"https://codeload.github.com/hirosassa/bqvalid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251795387,"owners_count":21645019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","google","linter","sql"],"created_at":"2024-10-24T07:06:20.343Z","updated_at":"2026-01-18T01:41:43.826Z","avatar_url":"https://github.com/hirosassa.png","language":"Rust","readme":"# bqvalid\n\n[![build](https://github.com/hirosassa/bqvalid/actions/workflows/test.yaml/badge.svg)](https://github.com/hirosassa/bqvalid/actions/workflows/test.yaml)\n[![codecov](https://codecov.io/gh/hirosassa/bqvalid/branch/main/graph/badge.svg?token=Q5FIA58YTN)](https://codecov.io/gh/hirosassa/bqvalid)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/hirosassa/bqvalid/blob/main/LICENSE)\n\n## What bqvalid does\n\n`bqvalid` is a SQL linter tool for BigQuery GoogleSQL (formerly known as StandardSQL).\n`bqvalid` fails with error message if there are the violation of rules described in the [rules page](https://github.com/hirosassa/bqvalid/blob/main/docs/rules.md).\n\n## Installation\n\nYou can get binary of `bqvalid` from the release page like\n\n```shell\ncurl -LsJO https://github.com/hirosassa/bqvalid/releases/download/v0.0.9/bqvalid-x86_64-apple-darwin\n```\n\n## Usage\n\n```shell\ncat sample.sql | bqvalid\n```\n\nIf the SQL is contained the expressions that comparing `_TABLE_SUFFIX` with subquery, `bqvalid` outputs the reason and its position like:\n```\n5:7: Full scan will cause! Should not compare _TABLE_SUFFIX with subquery\n```\n\nAlso, you can input file paths or directory. `bqvalid` collects files whose extension is `.sql` (ignores files that has other extensions) :\n\n```shell\nbqvalid one.sql two.sql three.sql\n```\n\nor\n```shell\nbqvalid sql/\n```\n\nThen, the output will as follows:\n```\none.sql:6:6: Full scan will cause! Should not compare _TABLE_SUFFIX with subquery\nthree.sql:5:19: Full scan will cause! Should not compare _TABLE_SUFFIX with subquery\n```\n\n## Linting Rules\n\nSee the [rules page](https://github.com/hirosassa/bqvalid/blob/main/docs/rules.md)\n\n\n## Contributing\n\nSee the [contributing guide](https://github.com/hirosassa/bqvalid/blob/main/docs/contribute.md)!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirosassa%2Fbqvalid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhirosassa%2Fbqvalid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirosassa%2Fbqvalid/lists"}