Skip to content

Commit 2e8324a

Browse files
committed
[SPARK-52091] Add function SQL test file and answer file
### What changes were proposed in this pull request? This PR aims to add `function` SQL test file and answer file. ### Why are the changes needed? Not only a built-in function, we can use `java_method` to use any Java function. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #138 from dongjoon-hyun/SPARK-52091. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent e010c80 commit 2e8324a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT length(java_method('java.util.UUID', 'randomUUID'))
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+-----------------------------------------------+
2+
|length(java_method(java.util.UUID, randomUUID))|
3+
+-----------------------------------------------+
4+
| 36|
5+
+-----------------------------------------------+

0 commit comments

Comments
 (0)