-
Notifications
You must be signed in to change notification settings - Fork 290
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
Is it possible to register mappers dynamically? #185
Comments
Current implementation is building a static binary first and sharing the binary on distributed executors. So it is not possible. Java can dynamically send the byte code over the network. Go can not. |
This makes this a bit limited in scope as it does not allow to build any type of complex logic, as the mappers have to be registered in global scope. What if we add support for mappers with a different signature, e.g. |
wow, this is a great idea!!! Maybe limit the args to a JSON object, for easier serialization and deserialization? |
I am not familiar with the best practices in serialization in go so I defer that decision to you. :) I was imagining that we declare an interface for an argument (e.g.
I think that we may be able to keep backward compatibility with this change. I am unsure how we are getting and processing the arguments for Is this a reasonable approach? |
I am trying to register a mapper whose logic depends on the application.
The minimal reproducible example I came up with:
this code hangs, not with outputting an error:
Missing mapper function m1
.Note that this code is not interesting per-se, I am exemplifying a use-case on which the mapper may depend on app-specific logic.
Is this error expected behavior? I imagine that it is in theory, because spark allows this kind of functionality.
The text was updated successfully, but these errors were encountered: