-
Notifications
You must be signed in to change notification settings - Fork 19
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
[BUG] sfdc_formula_view returns invalid identifier 'MODEL' error on quoted table #99
Comments
Hi @RBABI-Team thanks for opening this issue. Would you be able to try and remove the following from your src.yml and see if that resolves the issue? quoting:
database: true
schema: true
identifier: true |
Marking this as stale since there has not been a response to the above suggestion. Let me know if you tried the above and it did or did not work. Thanks! |
I am going to close this issue and mark as If you come across this issue and the above suggestion does not resolve your error, please feel free to comment or reopen the issue. |
Appologies for the delay in circling back to this. Removing the quoting block above results in a SQL compilation error stating that the schema doesn't exist. I assume that's because the name of the schema is coerced to lower case in Snowflake, and without quoting turned on Snowflake is interpreting the object names as uppercase. Adding the quoting block as we had above is the recommended way to handle case-sensitive object names per dbt's documentation: https://docs.getdbt.com/reference/project-configs/quoting |
Thanks for the response @RBABI-Team. Out of curiousity, what error do you see if you remove the following config in the macro?
|
also occuring for me as well, wheter |
we have a ticket open with Fivetran support as well - quickstart failed to run exactly because of this issue too |
Is there an existing issue for this?
Describe the issue
sfdc_formula_view returns an invalid identifier 'MODEL' error when running on quoted tables, even with
using_quoted_identifiers=true
. This appears to be the statement throwing the error:Script
Error
However, when I check the table definitions of
fivetran_formula_model
in Snowflake it shows theMODEL
field is actually lowercase:Our Salesforce Connector does have a feature flag turned on to preserve the case/object names during replication due to some naming colisions, I'm wondering if that is what is causing the case discrepancy between Snowflake and what the macro is expecting?
Relevant error log or model output
Expected behavior
Model should generate as usual in dbt
dbt Project configurations
Not project.yml file, but the Salesforce source is set with the following quoting configuration:
Package versions
What database are you using dbt with?
snowflake
dbt Version
Core:
Plugins:
Additional Context
Feature Flags in Fivetran turned on:
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: