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

Implement default handler for multiple client pre_execute #1727

Closed
wants to merge 1 commit into from

Conversation

toryhaavik
Copy link
Contributor

No description provided.

@@ -46,6 +48,15 @@ def pre_execute_default(node, *clients, **kwargs):
return {}


# Merge the results of all client pre-execution with scope
@pre_execute.register(ops.Node, [ibis.client.Client])
Copy link
Member

Choose a reason for hiding this comment

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

Should this be:

pre_execute.register(ops.Node, ibis.client.Client, [ibis.client.Client])

Or are you intentionally matching 0 clients as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, no, i didn't realize it might match 0 clients. what does the function signature look like for that dispatch registration?

Copy link
Member

Choose a reason for hiding this comment

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

function signature looks like pre_execute(op, client, *clients, **kwargs)

@cpcloud cpcloud added this to the 1.0.0 milestone Mar 14, 2019
@cpcloud cpcloud added the pandas The pandas backend label Mar 14, 2019
@cpcloud cpcloud self-assigned this Mar 14, 2019
@cpcloud cpcloud added the feature Features or general enhancements label Mar 14, 2019
@cpcloud
Copy link
Member

cpcloud commented Mar 15, 2019

LGTM. Will merge later today.

@cpcloud cpcloud closed this in d68f468 Mar 17, 2019
@cpcloud
Copy link
Member

cpcloud commented Mar 17, 2019

Thanks @toryhaavik!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features or general enhancements pandas The pandas backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants