test: update tests of alter statemnts
This commit is contained in:
1
test/parser/flinksql/syntax/fixtures/alterDatabase.sql
Normal file
1
test/parser/flinksql/syntax/fixtures/alterDatabase.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER DATABASE tempDB SET ("key1"="value1");
|
7
test/parser/flinksql/syntax/fixtures/alterFunction.sql
Normal file
7
test/parser/flinksql/syntax/fixtures/alterFunction.sql
Normal file
@ -0,0 +1,7 @@
|
||||
ALTER FUNCTION tempFunction AS 'SimpleUdf';
|
||||
|
||||
ALTER TEMPORARY FUNCTION IF EXISTS tempFunction AS 'SimpleUdf';
|
||||
|
||||
ALTER TEMPORARY SYSTEM FUNCTION IF EXISTS tempFunction AS 'SimpleUdf';
|
||||
|
||||
ALTER FUNCTION myudf AS 'com.example.MyUdf' LANGUAGE PYTHON;
|
7
test/parser/flinksql/syntax/fixtures/alterTable.sql
Normal file
7
test/parser/flinksql/syntax/fixtures/alterTable.sql
Normal file
@ -0,0 +1,7 @@
|
||||
ALTER TABLE
|
||||
Orders RENAME TO NewOrders;
|
||||
|
||||
ALTER TABLE
|
||||
sample_table
|
||||
SET
|
||||
('key1' = 'value2');
|
8
test/parser/flinksql/syntax/fixtures/alterView.sql
Normal file
8
test/parser/flinksql/syntax/fixtures/alterView.sql
Normal file
@ -0,0 +1,8 @@
|
||||
ALTER VIEW v1 RENAME TO v2;
|
||||
|
||||
ALTER VIEW v1 AS
|
||||
SELECT
|
||||
c1,
|
||||
c2
|
||||
FROM
|
||||
tbl;
|
Reference in New Issue
Block a user