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 node.compiled_code for dbt-core>=v1.3.0 #113

Merged

Conversation

redpin-pankaj
Copy link
Contributor

@redpin-pankaj redpin-pankaj commented May 9, 2023

What

Fixes Issue : re-data/re-data#397 (save_test_history macro doesn't store compiled_sql after dbt-core>=v1.3.0)

How

By using the node.compiled_sql and node.compiled_code in an or condition so that the logic works with both dbt-core<v1.3.0 and dbt-core>=v1.3.0.

@gorandumic
Copy link

Will this be merged? It does solve the empty compiled sql text, just applied this change to the macro myself, thank you @gh-pankaj

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.

3 participants