-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-201] Reconcile configs + properties for sources #3662
Comments
This is great! Just commenting here to show my support of this feature. |
Minimal config for sources so needs to be expanded. No SQL for them. Only defined in YAML Complications: |
Context:
In summary, the goal of this issue:
Main exit criteria:
Totally fair question around how to handle a source I think configurations should be resolved first, and then # dbt_project.yml
sources:
my_package:
my_src_name:
+database: db_one sources:
- name: my_src_name
overrides: my_package
database: db_two I would expect both configurations to be resolved, then the override applied, such that |
First meeting with @emmyoop: Next Steps
Questions
|
Current state of work:
There are still potentially more unknown unknowns here and because of that we're not confident this list is exhaustive yet. |
Current state of work:
|
re-opening since #5008 only completed the first part of this ticket. |
Seems like this is no longer targeted for 1.1? Just wondering if there is an expected or estimated release for this |
@alexrosenfeld10 Totally fair question. v1.1 will include the work completed by #5008: supporting |
Fair enough, I get it - always lots to do only so much time. I am bummed though because that doesn't actually resolve the original issue that I opened related to this |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
I'd love even if we only got database/schema support at the dbt_project.yml file level for sources. |
+1 |
Follow-up to #2401, #3616
Let's convert some
source
properties into configs that can be set insideconfig:
blocks and withindbt_project.yml
:For backwards compatibility, we should still support setting these as top-level properties:
But raise an error if the same config is set in both places (even if it's with the same value):
Notes
We're thinking that descriptions shouldn't be configs. They're rendered with a different context (docs), and they don't make sense to set hierarchically. The same goes for
tests
andcolumns
—this would be quite tricky to figure out, sincetests
actually generate new nodes, rather than adding properties to the existing node.As far as the manifest /
graph.sources
context, I'm open to suggestions. For backwards compatibility, we'd want to store things likeloaded_at_field
in bothnode.config
and node-level keys. But I think there's a valid argument for removing this as a top-level key and only storing it innode.config
, so long as we communicate clearly that such a move is taking place.For better
state:modified
comparisons, we'd want to store the un-rendered version of these configs innode.unrendered_config
, regardless of whether they're set indbt_project.yml
ormodels/src_whatever.yml
. Original issue for this is Store the unresolved form of source database representations #2744.The text was updated successfully, but these errors were encountered: