-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-2676] [Bug] persist_docs
with columns starting with a number errors
#7832
Comments
persist_docs
with columns starting with a number errorspersist_docs
with columns starting with a number errors
When I |
Thanks for reporting this @tnorlund-dsc ! I'm having trouble reproducing this on my end. Could you try out the following and let me know if it does or doesn't work for you? If it does work without issues, can you try tweaking it to get it to reproduce the error you are seeing?
dbt run --select my_model
dbt run --select model_that_has_persist_docs |
I'm able to repro the problem when the model with In my example, I don't see a yaml file in your example. The logs show the run is failing after the table is created. I'm guessing the run fails when the comments are set:
My yaml file is standard: version: 2
models:
- name: cln_ra__sponsored_brands
description: Traffic data for the brand page. This data is at a date-level and describes media spend and traffic associated with the brand page.
columns:
...
- name: 14_day_total_orders
description: Total number of orders that were purchased through the ad over a 14 day period I can get the run to complete with a different column name. It fails with the column description and without it. |
Yep, this was it -- thanks for pointing this out @tnorlund-dsc 🧠. See below for a full reproducible example.
|
@tnorlund-dsc Sorry for the churn here, but I just realized we actually have a In the example above, you'd specify that the column needs to be quoted like this: version: 2
models:
- name: model_that_has_persist_docs
columns:
- name: 14_day_total_orders
quote: true
description: Total number of orders that were purchased through the ad over a 14 day period Could you give this a shot? |
That fixed it! Thanks @dbeatty10 |
Is this a new bug in dbt-core?
Current Behavior
When I create a table with the
persist_docs
in the config, I get an error when running the model.With the logs showing:
Expected Behavior
I should be able to
persist_docs
in Redshift and have columns that are named using ASCI characters.Steps To Reproduce
While using Redshift, use a config that has
persists_docs
and add column descriptions for columns that have names that start with a number.Relevant log output
No response
Environment
Which database adapter are you using with dbt?
redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered: