【发布时间】:2021-09-17 19:09:09
【问题描述】:
this PR 将所有re 模块功能添加到dbt-jinja,但是如何使用呢?我尝试了以下两个,但没有成功。
{% set matcher = re.match('^C', 'Cat') %}
're' is undefined. This can happen when calling a macro that does not exist. Check for typos and/or install package dependencies with "dbt deps".
{% set matcher = match('^C', 'Cat') %}
> 'match' is undefined. This can happen when calling a macro that does not exist. Check for typos and/or install package dependencies with "dbt deps".
【问题讨论】: