Open tunguyensinh opened 4 days ago
Hi @tunguyensinh thanks for opening this issue! It is an interesting one. I think your first suggestion
Add the field {isrename: True} for pass-through columns in get*_columns.sql
might be the best path since fivetran_utils.add_pass_through_columns
is meant for all our packages.
I saw you checked you were willing to open a PR. If that's still the case, for now you can create a fork of this repo, make your changes, and then open a PR against this repo with your changes. We'll let you know what else we need from there, or let us know if you have any other questions!
Is there an existing issue for this?
Describe the issue
For example, if we configure pass-through column email with a different alias
This line call
column_list_to_dict
macro, that will override the existing email's metadata, therefore, causerenamed_column_name
field empty, result in invalid SQL syntax (rendered bysalesforce_source.coalesce_rename
macro):Relevant error log or model output
Expected behavior
Should not override metadata of existing column,
expected:
Possible solution
Add the field
{is_rename: True}
for pass-through columns inget_*_columns.sql
or within thefivetran_utils.add_pass_through_columns
macro so that the macrocolumn_list_to_dict
does not override them. Keen to hear your suggestions.dbt Project configurations
Package versions
">=1.1.0", "<1.2.0"
What database are you using dbt with?
redshift
How are you running this dbt package?
dbt Core™
dbt Version
1.8
Additional Context
No response
Are you willing to open a PR to help address this issue?