Skip to content

feat: GQL basic structure#339

Merged
makenowjust merged 10 commits intocloudspannerecosystem:mainfrom
apstndb:feature/gql-basic-structure
Feb 20, 2026
Merged

feat: GQL basic structure#339
makenowjust merged 10 commits intocloudspannerecosystem:mainfrom
apstndb:feature/gql-basic-structure

Conversation

@apstndb
Copy link
Contributor

@apstndb apstndb commented Feb 12, 2026

This PR implements the basic structure of Spanner Graph GQL.

  • Top-level GRAPH statement
  • RETURN GQL statement withoit GROUP BY, ORDER BY, LIMIT, OFFSET
  • NEXT and set operators.

Related

- Add GQL AST nodes for GRAPH, RETURN, NEXT, and set operators
- Implement GQL parser with Lookahead and recursive descent
- Implement GQL unparser in ast/sql.go
- Add comprehensive test suite for basic GQL queries
- Enforce mandatory AS aliases in RETURN clauses in tests
- Rename GQL operational nodes to match SQL naming patterns (e.g., GQLReturnStatement -> GQLReturn)
- Simplify field names in compositional GQL nodes (e.g., Query, Statements, Items)
- Add BadGQLLinearQueryStatement and BadGQLPrimitiveQueryStatement for error recovery
- Update parser and unparser to reflect the refined AST structure
- Update generated files and test expectations
@makenowjust
Copy link
Collaborator

@apstndb Thank you!

@makenowjust makenowjust merged commit e01a84d into cloudspannerecosystem:main Feb 20, 2026
2 checks passed
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.

2 participants