You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works if the macros are in the same file, but I think we can make this work across files by putting the underlying macro functions into the jinja context and parsing the macro sql twice. Agree @cmcarthur?
This will double down on our requirement that macros do not use this, ref, etc. I think that's ok though
The text was updated successfully, but these errors were encountered:
@cmcarthur@drewbanin I can't figure out from your subsequent PR how to call a macro from inside another macro when they aren't in the same file - do you have any pointers?
heya @jranks123! Sure thing, this is definitely possible today. Just make sure that both of these macros live inside of files in the macros/ directory. For example:
This works if the macros are in the same file, but I think we can make this work across files by putting the underlying macro functions into the jinja context and parsing the macro sql twice. Agree @cmcarthur?
This will double down on our requirement that macros do not use
this
,ref
, etc. I think that's ok thoughThe text was updated successfully, but these errors were encountered: