Closed jberkowitz89 closed 1 year ago
Hi @jberkowitz89 I just wanted to follow up here as we were able to chat during our office hours session last week. Our resolution for this issue was to open a Support Ticket for our engineering team to explore applying a fix within the connector itself.
Were you able to open the support ticket? If so, would you like to keep this issue open as well? If not, we could close it out as the conversation may have been moved to another ticket.
Let me know!
Hey Joe, I was able to pen the support ticket: https://support.fivetran.com/hc/en-us/community/posts/4617836454551-Connector-Improvement-dbt-salesforce-formula-utils-Support-for-Reserved-Keywords?input_string=Salesforce%20Formula%20Connector%20-
Feel free to close this one out, I'll keep an eye on the issue for any future fixes.
Thanks @jberkowitz89 appreciate the follow up and I will keep my eye on that support ticket you created.
Is there an existing issue for this?
Describe the issue
Our source
order
is configured in our dbt source having a specific identifierORDER
, and quoting set to true. When referencing this source in regular staging models, the SQL compiles todatabase.salesforce."ORDER"
. When referencing this source in thesalesforce_formula_utils.sfdc_formula_view
macro, the identifier and quoting are not included, and the SQL fails to reference the correct source table.When reviewing the compiled SQL, it appears that the identifier and quoting compile correctly for single table formulas, but don't compile correctly in the view_sql.
Relevant error log or model output
Expected behavior
I am expecting the SQL to compile correctly and include the quoting and identifier specified in our source.
SQL should compile to:
( select main__table.id, ( CASE main__table.effective_date = contract__alias.start_date WHEN true THEN False ELSE True END ) as renewal_order_c from database.salesforce."ORDER" as main__table left join database.salesforce.contract as contract__alias on main__table.contract_id = contract__alias.id ) as view_sql_1
dbt Project configurations
Package versions
What database are you using dbt with?
snowflake
dbt Version
Core:
latest: 1.3.0 - Update available!
Your version of dbt-core is out of date! You can find instructions for upgrading here: https://docs.getdbt.com/docs/installation
Plugins:
Additional Context
No response
Are you willing to open a PR to help address this issue?