Creating a custom jinja filter

is there any way to use (and register) a jinja custom filter inside dbt?

I would like to slugify some col names (we generate dynamic col from row’s values.

1 Like

Looking for exactly the same thing… want a regex_replace for this. Looks like there was a GH issue that’s been closed for now.

Although this still isn’t possible (and comes up from time to time), we have made good progress on knocking off the sorts of things that make them particularly necessary.

dbt now includes native support for: