Closed teddy-ruby closed 1 year ago
Upon further investigation, I realized this is SQL query stored in my fivetran_formula_model
table so the schema must be altered in that creating of those rows during sync.
Hey @teddy-ruby you beat me to it! You are correct that the SQL which seems to be throwing the error you are seeing is generated by the connector. As such, there is not much our team is able to do from the dbt package.
However, our engineering team will be able to help address any issues from the SQL generated within the fivetran_formula_model
table. You can open a support ticket to have our customer support and engineering teams help you!
As this is an issue we won't be able to address within the dbt package, I will close the issue. Please be sure to reach out to our support team to help address the issue. Thanks!
Thanks Joe! Yep, I reached out to support and they are working to address the issue. Thanks for your response! Cheers
Is there an existing issue for this?
Describe the issue
In creating the view, the final select statement adds underscores to my schema causing errors. I am just starting to work on supporting formula fields for my salesforce connectors so I am fairly new to dbt and have a setup that is pretty much copied from the examples. My src_salesforce.yaml file looks like : version: 2
And my opportunity model looks like:
{{ salesforce_formula_utils.sfdc_formula_view('opportunity') }}
In the created queries, the schema in the FROM portion of my select statement turns from org_0cc6aa0e_salesforce -> org_0_cc_6_aa_0_e_salesforce which does not exist and therefore the run errors.Relevant error log or model output
Expected behavior
For the schema to not be altered in the construction of queries.
dbt Project configurations
name: 'fivetran_dbt' version: '1.0.0' config-version: 2
profile: 'fivetran_dbt'
model-paths: ["models"] analysis-paths: ["analyses"] test-paths: ["tests"] seed-paths: ["seeds"] macro-paths: ["macros"] snapshot-paths: ["snapshots"]
target-path: "target" # directory which will store compiled SQL files clean-targets: # directories to be removed by
dbt clean
Package versions
packages:
What database are you using dbt with?
redshift
dbt Version
Core:
latest: 1.3.2 - 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?