Apply Multiple Macros as Hooks on a Model

Hey @jpgsa11! To call multiple macros, you should pass each one in as its own element of a list:

--some_model.sql
{{ config(
  post_hook=[
    "{{ Macro1(Arg1, Arg2, Arg3) }}",
    "{{ Macro2(Arg4, Arg5, Arg6, Arg7) }}"
  ]
)}}

For more details check out the docs on hooks: pre-hook & post-hook | dbt Developer Hub

2 Likes