The problem I’m having
I need to set a dynamic named based on a query result which is returned by a macro. It seems I cannot call macro and use its output because of the execution sequence. But I can use the start-up option to execute a macro. If I can set an env variable, then I can access that in the dbt_project.yml.
What I’ve already tried
I have tried to call the macros in various way. Even if its called, it does not return anything.
Any help would be appreciated. If its not possible, please let me know that as well. If you any better way that this, throw at me. Thanks !