fivetran / dbt_hubspot_source

Data models for Hubspot built using dbt.
https://fivetran.github.io/dbt_hubspot_source/
Apache License 2.0
33 stars 31 forks source link

[Feature] Optimize pass through all fields logic in staging models #102

Open fivetran-joemarkiewicz opened 1 year ago

fivetran-joemarkiewicz commented 1 year ago

Is there an existing feature request for this?

Describe the Feature

Currently we are performing a conditional check within the deal, contact, company, and ticket models when the hubspot__pass_through_all_columns variable is set to true. This conditional check is not the driest or most elegant code we could use in this situation. I would like to propose a feature for us to clean this logic up a bit more and make a provide a dryer and more elegant solution.

Describe alternatives you've considered

Using the current version. It should work, but it is not very dry.

Are you interested in contributing this feature?

Anything else?

This code was introduced within PR #