Skip to content

fix: allow macros to recursively resolve closes #2399 - #2400

Merged
tobymao merged 1 commit into
mainfrom
toby/recursive_macros
Apr 5, 2024
Merged

tobymao merged 1 commit into
mainfrom
toby/recursive_macros

Conversation

@tobymao

@tobymao tobymao commented Apr 5, 2024

Copy link
Copy Markdown
Contributor

macro variables were not resolving additional macro references. also, we ensure conversion of sql to the right dialect when using string templates like @sql

cc @erindru

@tobymao
tobymao force-pushed the toby/recursive_macros branch from c6769c4 to a731eb4 Compare April 5, 2024 03:01
@tobymao

tobymao commented Apr 5, 2024

Copy link
Copy Markdown
Contributor Author

@erindru can you test that this works for your use case?

Comment thread sqlmesh/core/macros.py Resolved
Comment thread sqlmesh/core/macros.py Resolved
@tobymao
tobymao force-pushed the toby/recursive_macros branch from a731eb4 to 5150dc3 Compare April 5, 2024 13:48
@tobymao
tobymao enabled auto-merge (squash) April 5, 2024 13:48
@tobymao
tobymao merged commit b1c39b4 into main Apr 5, 2024
@tobymao
tobymao deleted the toby/recursive_macros branch April 5, 2024 13:59
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