-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-42643][CONNECT][PYTHON] Register Java (aggregate) user-defined functions #40244
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
spark.udf.registerJavaFunction
spark.udf.registerJavaFunctionspark.udf.registerJavaFunction
a944368 to
5673a9a
Compare
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.
JavaUDF has no deterministic field but the server doesn't have logic that relies on that field. So only the comment is changed to minimize changes to proto.
98f05d1 to
93728ea
Compare
spark.udf.registerJavaFunctionspark.udf.registerJavaFunction
spark.udf.registerJavaFunction|
After double thoughts, I add |
|
WDYT @hvanhovell ? |
995c287 to
9474361
Compare
… functions ### What changes were proposed in this pull request? Implement `spark.udf.registerJavaFunction` and `spark.udf.registerJavaUDAF`. A new proto `JavaUDF` is introduced. ### Why are the changes needed? Parity with vanilla PySpark. ### Does this PR introduce _any_ user-facing change? Yes. `spark.udf.registerJavaFunction` and `spark.udf.registerJavaUDAF` are supported now. ### How was this patch tested? Parity unit tests. Closes #40244 from xinrong-meng/registerJava. Authored-by: Xinrong Meng <[email protected]> Signed-off-by: Xinrong Meng <[email protected]> (cherry picked from commit 92aa087) Signed-off-by: Xinrong Meng <[email protected]>
|
Merged to master and branch-3.4, thanks all! |
… functions ### What changes were proposed in this pull request? Implement `spark.udf.registerJavaFunction` and `spark.udf.registerJavaUDAF`. A new proto `JavaUDF` is introduced. ### Why are the changes needed? Parity with vanilla PySpark. ### Does this PR introduce _any_ user-facing change? Yes. `spark.udf.registerJavaFunction` and `spark.udf.registerJavaUDAF` are supported now. ### How was this patch tested? Parity unit tests. Closes apache#40244 from xinrong-meng/registerJava. Authored-by: Xinrong Meng <[email protected]> Signed-off-by: Xinrong Meng <[email protected]> (cherry picked from commit 92aa087) Signed-off-by: Xinrong Meng <[email protected]>
What changes were proposed in this pull request?
Implement
spark.udf.registerJavaFunctionandspark.udf.registerJavaUDAF.A new proto
JavaUDFis introduced.Why are the changes needed?
Parity with vanilla PySpark.
Does this PR introduce any user-facing change?
Yes.
spark.udf.registerJavaFunctionandspark.udf.registerJavaUDAFare supported now.How was this patch tested?
Parity unit tests.
SPARK-41661