# google/googlesql

GoogleSQL(formerly ZetaSQL) - Analyzer Framework for SQL

Repository: https://github.com/google/googlesql
Canonical: https://ross.abutalabs.com/products/googlesql
Language: C++
License: Apache-2.0
License Family: permissive
Last push: 2026-08-19T21:11:03+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 81, longevity 100
- inputs: {"age_days": 2696, "days_push": 14, "days_rel": 50, "gap_med": 69.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2638, forks 258 (observed 2026-08-28T04:07:06.364805+00:00)

## What it is
GoogleSQL (formerly ZetaSQL) is a C++ analyzer framework that defines a SQL language—grammar, types, data model, semantics, and function library—and implements parsing and analysis as a reusable component. It is not a database or query engine itself; instead, multiple engines (BigQuery, Spanner, etc.) embed it to get consistent name resolution, type checking, and query analysis, validated via a compliance test suite.

## Use cases
- parse and analyze SQL queries in a custom query engine
- add consistent SQL language support to my database engine
- type-check and resolve names in SQL statements
- validate my engine's SQL implementation against a compliance test suite
- build tooling to analyze BigQuery SQL queries
- experiment with the new pipe query syntax
- get a resolved AST for SQL queries

## When to choose
- you are building a SQL query engine and want consistent language semantics without implementing parsing and analysis yourself
- you need a production-grade SQL parser and analyzer with a stable resolved AST
- you want to build tooling that understands queries against BigQuery, Spanner, or other GoogleSQL engines
- you want to validate your engine's SQL behavior against a reference compliance suite

## When to avoid
- you need a database or query execution engine—GoogleSQL only provides a reference implementation, not a production executor
- you need a lightweight SQL parser in a language other than C++ or with simple bindings
- you only need to run queries against an existing database
- you need full control over SQL dialect semantics that diverge from Google's SQL language

## Facets
- artifact type: library
- maturity: active
- function: parser, compiler, testing, developer-tools
- domain: databases, parsers, developer-tools, apis
- platform: cpp, cross-platform
- tags: sql, sql-analyzer, query-language, bigquery, spanner, type-checking, name-resolution, compliance-testing, pipe-syntax, linux, macos

## Member repositories
- google/googlesql (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:06.364805+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:19:11.485613+00:00, confidence not recorded.
  - readme: https://github.com/google/googlesql (fetched 2026-08-28T04:07:06.364805+00:00, sha 60332ee510db)
- Data as of 2026-08-30T08:39:29.467469+00:00.
