Skip to content

fix(parser): preserve Jinja templates in SQL extraction#445

Open
dataders wants to merge 2 commits intoposit-dev:mainfrom
dataders:fix-jinja-boundary-extraction
Open

fix(parser): preserve Jinja templates in SQL extraction#445
dataders wants to merge 2 commits intoposit-dev:mainfrom
dataders:fix-jinja-boundary-extraction

Conversation

@dataders
Copy link
Copy Markdown

@dataders dataders commented May 8, 2026

Summary

  • Treat dbt-style Jinja templates as opaque SQL-side parser tokens
  • Preserve {{ ref(...) }} in SQL extraction before VISUALISE splitting
  • Add tree-sitter corpus coverage and a Rust source-tree regression test

Validation

  • npx tree-sitter test
  • cargo test -p ggsql parser::source_tree::tests

dataders and others added 2 commits May 8, 2026 17:21
Treat dbt-style Jinja templates as opaque SQL-side parser tokens so SQL extraction keeps refs intact before VISUALISE splitting.

Tests:

- npx tree-sitter test

- cargo test -p ggsql parser::source_tree::tests

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dataders dataders marked this pull request as ready for review May 9, 2026 00:54
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