Skip to content

feat: add GoogleSQL parser to monorepo#29

Merged
h3n4l merged 1 commit into
mainfrom
add-googlesql-parser
Nov 3, 2025
Merged

feat: add GoogleSQL parser to monorepo#29
h3n4l merged 1 commit into
mainfrom
add-googlesql-parser

Conversation

@h3n4l
Copy link
Copy Markdown
Member

@h3n4l h3n4l commented Nov 3, 2025

Summary

  • Migrates the GoogleSQL (BigQuery) parser from standalone google-sql-parser repository
  • Adds comprehensive test coverage with 72 SQL example files including TPC-H queries
  • Updates CI workflow to include googlesql in test matrix
  • All tests passing successfully

Changes

  • Added GoogleSQL grammar files (GoogleSQLLexer.g4, GoogleSQLParser.g4)
  • Added 72 test examples:
    • 1 custom easy.sql example
    • 22 TPC-H benchmark queries from ZetaSQL
    • 49 ZetaSQL parser test data files covering DDL, DML, and other SQL statements
  • Created Makefile for building and testing the parser
  • Updated package names from parser to googlesql
  • Updated import paths to github.com/bytebase/parser/googlesql
  • Updated .github/workflows/tests.yml to include googlesql parser
  • Generated parser files using ANTLR 4 with Go target

Test plan

  • All 72 GoogleSQL parser tests passing
  • Parser generation successful with ANTLR 4
  • CI workflow updated to include googlesql parser
  • Package names and imports updated correctly

🤖 Generated with Claude Code

This commit adds the GoogleSQL (BigQuery) parser from the standalone google-sql-parser repository into the unified parser monorepo.

Changes:
- Added GoogleSQL grammar files (GoogleSQLLexer.g4, GoogleSQLParser.g4)
- Added test infrastructure with 72 example SQL files (including TPC-H queries and ZetaSQL test data)
- Created Makefile for building and testing the parser
- Updated package names from 'parser' to 'googlesql'
- Updated import paths to github.com/bytebase/parser/googlesql
- Updated CI workflow to include googlesql in the test matrix
- Generated parser files using ANTLR 4 with Go target
- All 72 tests passing successfully

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@h3n4l h3n4l enabled auto-merge (squash) November 3, 2025 09:40
@h3n4l h3n4l merged commit e845353 into main Nov 3, 2025
5 checks passed
@h3n4l h3n4l deleted the add-googlesql-parser branch November 3, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant