-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Handle Serde for Custom ScalarUDFImpl
traits
#8706
Comments
I'd also like to work on this. 😃 |
I need some guide on this. 🤔 |
Maybe @thinkharderdev can comment -- perhaps nothing is needed? |
Aha, maybe I can help other issues first. 😄 |
Hey @yyy1000 I think there is some work to do here. Currently the serialization for udf looks like
eg, we just use the But ideally we would be able to serialize a custom scalar function that has some sort of associated state. For example, a regex scalar function that actually contains the compiled regex in it's struct definition like:
Currently the mechanism that is used for this kind of thing is to define a custom
So then I would be able to define my own UDFs that contain internal state and then define an extension codec like
However, this doesn't play very nicely with how the serde is currently defined because we have no way to get a |
Perhaps this could be incorporated into |
@thinkharderdev Much appreciated! I understand the issue now. |
Edit: On second thought we can probably just extend Hey @yyy1000, looking at this a bit and I think what we want here is:
Would do a similar thing for
This would be mostly unchanged from the existing
If you don't have bandwidth now to work on this let me know, My team can take this up as we are hoping to be able to use this functionality soon. |
Thanks so much for your detailed instructions! @thinkharderdev |
A question I have is, replace Replace |
Yeah I think so. @alamb do you see any issues with that? |
Also I wonder how to deal with some other places which don't need a |
I don't see any specific issue and I don't think it would affect users of the crate much -- I don't think they typically use protobuf encoding directly, but rather go through the higher level apis like |
Is your feature request related to a problem or challenge?
#8578 added a
ScalarUDFImpl
trait for implementing ScalarUDF.@thinkharderdev said: #8578 (comment)
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: