Open moltar opened 2 years ago
Hi @moltar! We're in the process of extracting the insert_by_period materialization from this project and moving it to the experiments repo, to better reflect its level of maturity.
Once that move is complete, we'd welcome a PR to incorporate this fix!
Describe the bug
We have a model with a long name.
When we use
materialized: insert_by_period
and the suffix is appended bydbt-utils
, the resulting model name is too long.Steps to reproduce
Use a model name that is 62 characters.
Expected results
Not result in an error and have the ability to override the name.
Actual results
An error is thrown:
Screenshots and log output
N/A
System information
The contents of your
packages.yml
file:Which database are you using dbt with?
The output of
dbt --version
:Additional context
The fix for PostgreSQL was implemented here: https://github.com/dbt-labs/dbt-core/pull/4921
I think changing the code to:
Should solve the problem.
Are you interested in contributing the fix?