-
Notifications
You must be signed in to change notification settings - Fork 37
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
[Enhancement] Unify all PPL functions in BuiltinFunctionName #1062
[Enhancement] Unify all PPL functions in BuiltinFunctionName #1062
Conversation
Signed-off-by: Heng Qian <[email protected]>
Signed-off-by: Heng Qian <[email protected]>
@@ -75,6 +82,14 @@ | |||
import static org.opensearch.sql.ppl.utils.DataTypeTransformer.seq; | |||
import static scala.Option.empty; | |||
|
|||
/** |
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.
Thanks for improving the javadoc.
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.
Thanks. code looks good.
Could u fix the e2e IT?
Signed-off-by: Heng Qian <[email protected]>
e2e IT retry successfully without any code change. Seems a flakey failure. I don't see any failure except |
* [Enhancement] Unify all PPL functions in BuiltinFunctionName Signed-off-by: Heng Qian <[email protected]> * Fix UT Signed-off-by: Heng Qian <[email protected]> * Tiny change in doc Signed-off-by: Heng Qian <[email protected]> --------- Signed-off-by: Heng Qian <[email protected]> (cherry picked from commit 7c87378) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…1064) * [Enhancement] Unify all PPL functions in BuiltinFunctionName * Fix UT * Tiny change in doc --------- (cherry picked from commit 7c87378) Signed-off-by: Heng Qian <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Unify all PPL functions in BuiltinFunctionName. This PR includes change:
BuiltinFunctionName
, that place should be the single of truth to maintain all PPL built-in functions.SerializableUdf::visit
change to use function enumerator as its switch key instead of string.PPL_TO_SPARK_UDF_MAPPING
inBuiltinFunctionTransformer
to do transformation of PPL built-in function to Spark UDF we implemented in this project.Related Issues
Resolves: #1051
Check List
--signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.