Closed lucasespinos closed 2 months ago
Hi @lucasespinos thanks for opening this issue and sorry to hear you are running into this formula translation error.
Unfortunately, this dbt package only materializes the sql code provided in the fivetran_formula_model
table. Therefore, this package has no control over the translations themselves. Fortunately, the connector team does! While we won't be able to address this issue via the dbt package, this can be address directly in the connector.
I recommend opening a Fivetran Support Ticket and highlighting the same information you have here. The Fivetran Support team will then be able to share this with the connector team and look to updating the logic used to translate the Salesforce Formula Field.
Let me know if you have any questions. Thanks!
Since this is not an issue we will be able to address directly within the dbt package, I will mark this as wontfix
. @lucasespinos let me know if you have any concerns. Otherwise, I will plan to close this issue in the near future.
Is there an existing issue for this?
Describe the issue
Hello,
I am using fivetran quickstart transformations in order to bring salesforce formula fields to bigquery. But one the views that it got created for a specific salesforce object is not working. I found the root cause and its because of one field formula translation. So we have a field called
voc_expected_c
and the original formula inside salesforce is the following:and the fivetran SQL translation is the following:
The heart of the problem is the natural logarithm function
LN()
Since first when statement will always be false we went to the second one
COALESCE(mt.mpirradiance_c,0)/10000
and here formt.mpirradiance_c
column we might have null values and in that case we will haveLN(0)
issues.In theory I think this part of the formula need to be something like the following:
This will solve the issue. But since we are not using dbt custom project only enable it from quickstart models there is nothing that we can do right now...
Can someone help me with this?
Relevant error log or model output
Expected behavior
Bigquery view working without any issues.
dbt Project configurations
-
Package versions
-
What database are you using dbt with?
bigquery
dbt Version
1.7.14
Additional Context
No response
Are you willing to open a PR to help address this issue?