Skip to content
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

pass args as string #185

Merged
merged 2 commits into from
Oct 18, 2023
Merged

pass args as string #185

merged 2 commits into from
Oct 18, 2023

Conversation

dave-connors-3
Copy link
Collaborator

This PR makes dbt-meshify compatible with the latest dbt core release by passing any multiselect args to dbt ls as a single string separated by spaces, which is accepted by the parser in dbt core.

My initial implementation was to convert the tuple that is returned from our meshify command to a list, but that raised the same error as before -- if appears the type check we were discussing in our sync is not relevant for the --select flag, and is used for other flags.

I tested on 1.6.3+, and these changes appear to work across versions

Copy link
Collaborator

@nicholasyager nicholasyager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dave-connors-3 I have one small suggestion to remove a debugger line, but otherwise this looks good!

@@ -320,12 +320,17 @@ def select_resources(
) -> Set[str]:
"""Select dbt resources using NodeSelection syntax"""
args = []
# import pdb; pdb.set_trace()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# import pdb; pdb.set_trace()

@nicholasyager
Copy link
Collaborator

Resolves #186

@dave-connors-3 dave-connors-3 merged commit 9edf5f0 into main Oct 18, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants