Search⌘ K
AI Features

Solution: Pack Your Macro

Explore how to pack your macro into a local dbt package, configure package paths, and call macros within your project. This lesson helps you understand how to organize and reuse macros to enhance your dbt project structure and improve data transformation workflows.

We'll cover the following...

Solution

Let’s review the solution to the problem.

name: 'aggregations_package'
version: '1.0.0'
config-version: 2
Local package

Code explanation

In the aggregations_package/macros/daily_count.sql file: ...