-
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
[Bug] [Spike] indirect_selection in yaml selector definition doesn't work #9776
Comments
We should write some brief docs about how selector works in general and have that added to the repo as a read me |
@gshank What I found is that the indirect selection in So for this jaffle shop model orders, I defined a selectors.yml looking like this selectors:
- name: nodes_to_joy
definition:
union:
- method: path
value: models/marts/orders.sql
children: false
parents: false
indirect_selection: buildable And by changing the This doesn't match this PR description but matches what Doug said in his issue. Thouths? Any issue with the way I test? |
I did find out the reason for the behavior Doug mentioned is that the rendered.selectors_dict here does not contain a resolved dict that has default value inside. @gshank do you know in other places how do we resolve these kind of stuff? I think we should probably setup a patten to do resolution(CLI, env var, project file definition). |
We do that kind of resolution in the flags.py file, so I guess this is similar to that. |
Current behavior
With a yaml selector in selectors.yml, indirect_selection doesn't work:
If the same selector is defined using the CLI and --indirect-selection, it does work.
Expected behavior
"indirect_selection" defined in a yaml selectors works as expected.
Steps to reproduce
Create a selector with indirect_selection defined.
Relevant log output
Acceptance Criteria
As a part of the spike, please create a readme in GH with your findings to make it easier for future engineers to work in this code.
Additional context
Unclear if this ever worked.
Assess what it would take to support this or if we shouldn't support this and update documentation.
This code is hard to work on, may require clean up in process.
https://docs.getdbt.com/reference/node-selection/yaml-selectors#indirect-selection
It looks like some code was added last year via a community contributor PR which doesn't function as expected for yaml selectors.
See also #7673
The text was updated successfully, but these errors were encountered: