-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add source definitions for Task, Contact, and other built-in object types #31
Comments
Hey @al-the-x this is a great idea for a future feature to the package, and one we have been pondering for quite some time 🤔. The main issue we constantly encounter is the high variability of Salesforce schemas across Fivetran customers. There are a large number of tables that a majority of customers do not leverage. Therefore, we most likely will never achieve the dream of including every Salesforce table within this package... But who knows!! In the meantime, we are actually working on a pretty big update to our Salesforce package at this moment, and good news... both the For the future, after we release the next update there will most likely still be sources that you will want to leverage that our package doesn't include. If you want to keep it all in one place still, you can always leverage the source override feature within dbt-core to include your sources outside of our package, but still have them documented with our package sources. |
Thanks for the insight, Joe, and I'll definitely keep an eye on Renee's work in #30. My workaround approach as documented only works so well, so maybe I'm doing it wrong? When using When I don't use We want all the Salesforce-related models to display together in documentation and appear under the same namespace. What am I doing wrong here? |
@al-the-x this is very interesting as I have never tried to override the package source by adding new models (I have changed descriptions and various freshness tests), and see what you are referring to with the error. It looks like the overrides feature does not allows for an override of the |
Thanks, Joe. Appreciate your help and insight. |
Hey @al-the-x I was able to do some digging yesterday and this morning on managing all of the source documentation in one place (for salesforce in this instance). Unfortunately, I wasn't able to find anything that can be supported natively within dbt-core for this to work as you are hoping. I did find a viable solution; however, it is not as elegant as I would have liked. Essentially, forking this repo and using the fork in your I know this is not the ideal form, but I believe it would result in your desired outcome. |
Thanks for the extra digging, sir. We considered forking the package to add the source definitions that were missing, but the only way that makes sense is to contribute those changes back to the main project. Since, as you've pointed out, those objects aren't used universally, and most folks customize the Contact object, as we have done, so I'm not sure how valuable those contributions would be. What are your thoughts? |
Is there an existing feature request for this?
Describe the Feature
Currently, the
salesforce_source
package only defines the tablesaccount
,opportunity
,user
anduser_role
in itssources
property config, and it does so quite verbosely! Thanks!It would be quite helpful if it also defined some of the other common table objects that are already included with the Fivetran Salesforce connector for use in
{{ source(..., ...) }}
tags. There are a LOT of core objects in Salesforce, and having canonical source / model definitions would save us a lot of codegen.Describe alternatives you've considered
We need at least the
Contact
andTask
objects at this time, which we've worked around by definingname
-onlytables
definitions in asalesforce.yml
file containing Source Properties:We can use
generate_source
fromdbt-labs/codegen
to generate source definitions for them directly from the data dumped into the warehouse, but they won't be as descriptive and will contain custom fields.Are you interested in contributing this feature?
Anything else?
No response
The text was updated successfully, but these errors were encountered: