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

Remove operations [#1117] #1176

Merged
merged 2 commits into from
Dec 18, 2018
Merged

Remove operations [#1117] #1176

merged 2 commits into from
Dec 18, 2018

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented Dec 5, 2018

Fixes #1117 and re-implements #878 since this is planned for 0.13.0 anyway.
Remove operations on the jinja level, and replace them with execute_macro. Some context generation stuff had to be updated, but nothing of substance.

@cmcarthur cmcarthur changed the base branch from dev/stephen-girard to dbt-core December 18, 2018 15:06
Copy link
Member

@cmcarthur cmcarthur left a comment

Choose a reason for hiding this comment

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

This looks great, it works better architecturally. I like the idea of giving the Python code control over the execution flow.

macro = module.__dict__[dbt.utils.get_dbt_operation_name(name)]
else:
macro = module.__dict__[dbt.utils.get_dbt_macro_name(name)]
macro = module.__dict__[dbt.utils.get_dbt_macro_name(name)]
Copy link
Member

Choose a reason for hiding this comment

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

👍


return node


Copy link
Member

Choose a reason for hiding this comment

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

👍

core/dbt/context/common.py Show resolved Hide resolved
@beckjake beckjake merged commit d2a68d9 into dbt-core Dec 18, 2018
@beckjake beckjake deleted the fix/remove-operations branch December 18, 2018 19:23
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