When you add this macro as a post-hook, you get `maximum recursion depth exceeded while calling a Python object` when running `dbt compile`