-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-50056][SQL] Codegen Support for ParseUrl (by Invoke & RuntimeReplaceable) #48579
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
Conversation
| case class ParseUrlEvaluator( | ||
| cachedUrl: () => URI, | ||
| cachedExtractPartFunc: URI => String, | ||
| cachedPattern: () => Pattern, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's better to not put lambda functions here as ParseUrlEvaluator will be serialized and sent to the executor side.
Can we pass the necessary basic information so that we can generate these lambda functions within ParseUrlEvaluator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me try.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
(PS: This is really a good suggestion. For myself, the code looks much better now, thanks! ❤️)
|
thanks, merging to master! |
Thanks! ❤️ |
|
Thank you, @panbingkun and @cloud-fan . |
What changes were proposed in this pull request?
The pr aims to add
CodegenSupport forparse_url.Why are the changes needed?
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA & Existed UT (eg: UrlFunctionsSuite#
*parse_url*)Was this patch authored or co-authored using generative AI tooling?
No.