Skip to content

feat: add BigQuery parser to monorepo#33

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

feat: add BigQuery parser to monorepo#33
h3n4l merged 1 commit into
mainfrom
add-bq-parser

Conversation

@h3n4l
Copy link
Copy Markdown
Member

@h3n4l h3n4l commented Nov 3, 2025

Summary

  • Migrates the BigQuery parser from standalone bq-parser repository
  • Adds test coverage with 8 SQL example files
  • Updates CI workflow to include bq in test matrix
  • All tests passing successfully

Changes

  • Added BigQuery grammar files (BigQueryLexer.g4, BigQueryParser.g4)
  • Added 8 test examples covering various SQL statements
  • Created Makefile for building and testing the parser
  • Updated package names from parser to bq
  • Updated import paths to github.com/bytebase/parser/bq
  • Updated .github/workflows/tests.yml to include bq parser
  • Generated parser files using ANTLR 4 with Go target

Test plan

  • All 8 BigQuery parser tests passing
  • Parser generation successful with ANTLR 4
  • CI workflow updated to include bq parser
  • Package names and imports updated correctly

🤖 Generated with Claude Code

This commit adds the BigQuery parser from the standalone bq-parser repository into the unified parser monorepo.

Changes:
- Added BigQuery grammar files (BigQueryLexer.g4, BigQueryParser.g4)
- Added test infrastructure with 8 example SQL files
- Created Makefile for building and testing the parser
- Updated package names from 'parser' to 'bq'
- Updated import paths to github.com/bytebase/parser/bq
- Updated CI workflow to include bq in the test matrix
- Generated parser files using ANTLR 4 with Go target
- All 8 tests passing successfully

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

Co-Authored-By: Claude <noreply@anthropic.com>
@h3n4l h3n4l merged commit bc210c6 into main Nov 3, 2025
5 checks passed
@h3n4l h3n4l deleted the add-bq-parser branch November 3, 2025 10:10
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