This is an example project showcasing how to perform syntactic and semantic query validation for BigQuery using ZetaSQL and the ZetaSQL Toolkit.
This project is an example-driven guide, where each example explains some aspect of the proposed solution using ZetaSQL. There are two sections:
- Syntactic validation
- Semantic validation
We recommend going through the examples in the provided order and reading them, together with the included javadocs and comments explaining them. They will walk you through both syntactic validation and semantic validation for queries.
You can build containers for this examples easily using Jib. See Jib's quickstart.
mvn compile jib:dockerBuild \
-Dcontainer.mainClass=org.example.bigquery.validation.syntax.A_BasicParserExample
mvn compile jib:build \
-Dcontainer.mainClass=org.example.bigquery.validation.syntax.A_BasicParserExample \
-Dimage=gcr.io/...