Skip to content

Commit 243fae3

Browse files
committed
Fix
1 parent 388213f commit 243fae3

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

sql/core/src/test/resources/sql-tests/inputs/change-column.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ ALTER TABLE partition_table CHANGE COLUMN c c INT COMMENT 'this is column C';
5454
-- DROP TEST TABLE
5555
DROP TABLE test_change;
5656
DROP TABLE partition_table;
57+
DROP VIEW global_temp.global_temp_view;

sql/core/src/test/resources/sql-tests/inputs/udaf.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ SELECT default.myDoubleAvg(int_col1, 3) as my_avg from t1;
1111
CREATE FUNCTION udaf1 AS 'test.non.existent.udaf';
1212

1313
SELECT default.udaf1(int_col1) as udaf1 from t1;
14+
15+
DROP FUNCTION myDoubleAvg;
16+
DROP FUNCTION udaf1;

sql/core/src/test/resources/sql-tests/results/change-column.sql.out

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Automatically generated by SQLQueryTestSuite
2-
-- Number of queries: 33
2+
-- Number of queries: 34
33

44

55
-- !query 0
@@ -313,3 +313,11 @@ DROP TABLE partition_table
313313
struct<>
314314
-- !query 32 output
315315

316+
317+
318+
-- !query 33
319+
DROP VIEW global_temp.global_temp_view
320+
-- !query 33 schema
321+
struct<>
322+
-- !query 33 output
323+

sql/core/src/test/resources/sql-tests/results/udaf.sql.out

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Automatically generated by SQLQueryTestSuite
2-
-- Number of queries: 6
2+
-- Number of queries: 8
33

44

55
-- !query 0
@@ -52,3 +52,19 @@ struct<>
5252
-- !query 5 output
5353
org.apache.spark.sql.AnalysisException
5454
Can not load class 'test.non.existent.udaf' when registering the function 'default.udaf1', please make sure it is on the classpath; line 1 pos 7
55+
56+
57+
-- !query 6
58+
DROP FUNCTION myDoubleAvg
59+
-- !query 6 schema
60+
struct<>
61+
-- !query 6 output
62+
63+
64+
65+
-- !query 7
66+
DROP FUNCTION udaf1
67+
-- !query 7 schema
68+
struct<>
69+
-- !query 7 output
70+

0 commit comments

Comments
 (0)