Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sqlglot to parse queries to insert select literals #52

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ccharlesgb
Copy link
Collaborator

Description

This PR integrates the parser sqlglot into the dry runner to transform dbt models and insert select literals

Using a parser could be quite risky because the dry runner is now converting dbt SQL to and from an abstract syntax tree so we are relying on sqlglot to be able to handle all cases without changing the query of dbt models.

Fixes #11

Checklist:

  • I have run make verify and fixed any linting or test errors
  • I have added appropriate unit tests or if applicable an integration test
  • OPTIONAL: I have run make integration against a Big Query instance

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.

Dry run fails on models whose fields explicitly reference dependency models
1 participant