Closed jeff-skoldberg closed 1 year ago
Hi @jeff-skoldberg thanks for opening this issue. Unfortunately, as described within this dbt Slack thread this change would require a change on the connector side. The support ticket you opened will be where further communication will take place.
As such, I will close this issue.
Thanks as always, @fivetran-joemarkiewicz
Is there an existing issue for this?
Describe the issue
Consider a source.yml like this:
And a connection in dbt Cloud with a default database of
my_default_database
Then I have a model, call it my_salesforce_table_with_formulas.sql, which contains this code:
{{ salesforce_formula_utils.sfdc_formula_view(source_table='my_salesforce_table', full_statement_version=true) }}
When I compile the SQL, I will find a
FROM
clause that contains a table that is not fully qualified:When I try to preview the model or
dbt run
I will get this error:SQL compilation error: Schema 'MY_DEFAULT_DATABASE.MY_FIVETRAN_SALESFORCE_SCHEMA' does not exist or not authorized.
(I'm on Snowflake, so upper case names)It should of course by looking for
fivetran.my_fivetran_salesforce_schema
Relevant error log or model output
No response
Expected behavior
The sql produced by the macro should be fully qualified with db name. In this example:
dbt Project configurations
relevant config is in description of file.
Package versions
packages:
What database are you using dbt with?
snowflake
dbt Version
1.2
Additional Context
No response
Are you willing to open a PR to help address this issue?