Closed davejroth closed 8 months ago
Hey there! So looking at the error message, i think this is related to the length of this doc description and the fact that you're persisting the docs. According to these BigQuery docs status
should be okay to use as a field name, but BQ doesn't like the length of the column documentation
I think the most appropriate fix here would be to shorten the field's description to just be the link to the distribution status's Qualtrics API docs instead of listing them all out.
we'd be happy to prioritize reviewing a PR if you're open to creating one, otherwise i'd advise setting persist_docs
to false for the time being. I think you could potentially just turn off persist_docs for this specific model by scoping the configuration to something like
models:
+persist_docs:
relation: true
columns: true
qualtrics_source:
stg_qualtrics__distribution_contact:
+persist_docs:
relation: true
columns: false
Hi @davejroth I was able to reproduce the error on my end, and was also able to resolve it by making the changes @fivetran-jamie suggested previously. It would be helpful if you could verify this works for your case, so I have created a test branch that should enable you to run the package normally, without having to add passthrough vars or disabling persist_docs.
To install it, use the below snipped in your packages.yml in place of the current qualtrics lines.
packages:
- git: https://github.com/fivetran/dbt_qualtrics.git
revision: bug/persist-docs
warn-unpinned: false
If you are able to test it out, please let me know how it works. Thanks!
Thank you! I'm out of the office until Monday but will test next week and let you know.
On Tue, Jan 2, 2024 at 2:49 PM fivetran-catfritz @.***> wrote:
Hi @davejroth https://github.com/davejroth I was able to reproduce the error on my end, and was also able to resolve it by making the changes @fivetran-jamie https://github.com/fivetran-jamie suggested previously. It would be helpful if you could verify this works for your case, so I have created a test branch that should enable you to run the package normally, without having to add passthrough vars or disabling persist_docs.
To install it, use the below snipped in your packages.yml in place of the current qualtrics lines.
packages:
- git: https://github.com/fivetran/dbt_qualtrics.git revision: bug/persist-docs warn-unpinned: false
If you are able to test it out, please let me know how it works. Thanks!
— Reply to this email directly, view it on GitHub https://github.com/fivetran/dbt_qualtrics_source/issues/3#issuecomment-1874656955, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSP5I2DUPTBANMAJA3MGBDYMSFHJAVCNFSM6AAAAABBADKEDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUGY2TMOJVGU . You are receiving this because you were mentioned.Message ID: @.***>
Hi @davejroth thanks! I actually am going to go ahead and release this since I will be out of the office next week, but if it is not working for you after I release it, please let us know in this issue!
Is there an existing issue for this?
Describe the issue
dbt throws an error when building stg_qualtrics__distribution_contact. I believe the issue is that the model contains a column named
status
which is a reserved keyword in bigquery. I was able to successfully build the model by replacing line 38 withstatus as response_status
.Relevant error log or model output
Expected behavior
the model should materialize without an error
dbt Project configurations
I tried aliasing the column using the instructions provided in the git repo but it is not working:
Package versions
packages:
What database are you using dbt with?
bigquery
dbt Version
dbt=1.7.2
Additional Context
I think the resolution is to rename the column status -> response_status
Are you willing to open a PR to help address this issue?