Skip to content

Commit 0436211

Browse files
committed
[SPARK-51659] Add cache and describe-related sql test and answer files
### What changes were proposed in this pull request? This PR aims to add cache and describe related SQL test and answer files. - `cache.sql` - `clear_cache.sql` - `uncache.sql` - `describe_function.sql` - `describe_query.sql` ### Why are the changes needed? To have a test coverage. ### Does this PR introduce _any_ user-facing change? No, this is a test only change. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #34 from dongjoon-hyun/SPARK-51659. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 19e1b35 commit 0436211

File tree

10 files changed

+10
-0
lines changed

10 files changed

+10
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CACHE TABLE testCache OPTIONS ('storageLevel' 'DISK_ONLY') SELECT 1 col;
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+
CLEAR CACHE
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+
DESCRIBE FUNCTION abs
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[["Function: abs"],["Class: org.apache.spark.sql.catalyst.expressions.Abs"],["Usage: abs(expr) - Returns the absolute value of the numeric or interval value."]]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DESCRIBE QUERY VALUES(100, 'John', 10000.20D) AS employee(id, name, salary);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[["id","int",null],["name","string",null],["salary","double",null]]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UNCACHE TABLE IF EXISTS t1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

0 commit comments

Comments
 (0)