-
Notifications
You must be signed in to change notification settings - Fork 23
feature/union-data #71
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
Conversation
fivetran-jamie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still testing but wanted to get this stuff back to you
| @@ -0,0 +1,76 @@ | |||
| {% macro github_union_connections(connection_dictionary, single_source_name, single_table_name, default_identifier) %} | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove the default_identifier argument? It was necessary for Netsuite since the Netsuite1 vs Netsuite2 names are slightly different (which is why the table names != the source table names), but here the single_table_name and default_identifier are always the same
I don't think it's necessary for the other packages we plan to roll union_data out to as well (I think)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From standup, we decided to use default_identifier=single_table_name so we can keep this and for another package to use if necessary. We'll store macros like this in a central area but just for reference and not as a package.
fivetran-jamie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good but some requested changes!
Co-authored-by: Jamie Rodriguez <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very close! Most little doc suggestions + one required change in the src file
| loader: Fivetran | ||
| config: | ||
| loaded_at_field: _fivetran_synced | ||
| enabled: "{{ var('github_sources', []) == [] }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to include this in the table-level enabled configs that include variables, like on line 22 for issue_assignee
config:
loaded_at_field: _fivetran_synced
enabled: "{{ var('github__using_issue_assignee', true) and var('github_sources', []) == [] }}"Otherwise the enabled config gets overwritten and some github source tables are included in the DAG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Co-authored-by: Jamie Rodriguez <[email protected]>
…github into feature/union-data merge
PR Overview
Package version introduced in this PR:
This PR addresses the following Issue/Feature(s):
Summary of changes:
Submission Checklist
*.*_union_connectionsmacro call{{ *.apply_source_relation() }}source_relationto final select listenabled: "{{ var('github_sources', []) == [] }}"to src.ymlsource_relationcolumn to:<package_name>_sources: []to varssource_relationwas addedChangelog