Skip to content

Commit ebc4dbf

Browse files
committed
[SPARK-51916] Add create_(scala|table)_function and drop_function test scripts
### What changes were proposed in this pull request? This PR aims to add a test coverage for `CREATE FUNCTION` (Scala and Table) and `DROP FUNCTION`. ### Why are the changes needed? To maintain the test coverage on the requirements. ### Does this PR introduce _any_ user-facing change? No. This is a test addition. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #90 from dongjoon-hyun/SPARK-51916. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 9c8b0eb commit ebc4dbf

8 files changed

+12
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CREATE FUNCTION IF NOT EXISTS bar(x INT)
2+
RETURNS INT
3+
RETURN x + 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CREATE FUNCTION IF NOT EXISTS foo(x INT)
2+
RETURNS TABLE(a INT)
3+
RETURN SELECT x + 1 AS x1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP FUNCTION IF EXISTS bar
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP FUNCTION IF EXISTS foo
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)