feat: optimize suggestion (#231)
* feat: optimize the strategy of finding the right range * test: apply commentOtherLine util to all suggestion tests * test: decomment suggestion test cases * test: add suggestion test cases in multiple statements * chore: improve comments * test: update log info in test
This commit is contained in:
21
test/parser/spark/suggestion/fixtures/multipleStatement.sql
Normal file
21
test/parser/spark/suggestion/fixtures/multipleStatement.sql
Normal file
@ -0,0 +1,21 @@
|
||||
CREATE TABLE VALUES -- unfinished
|
||||
|
||||
CREATE TABLE student (id INT, name STRING, age INT) STORED AS ORC;
|
||||
|
||||
CREATE SCHEMA customer_db WITH DBPROPERTIES (ID=001, Name='John');
|
||||
|
||||
ALTER TABLE StudentInfo ADD COLUMNS (LastName string, DOB timestamp);
|
||||
|
||||
SELECT * FROM db. ; -- unfinished
|
||||
|
||||
INSERT INTO weather (date, city, temp_hi, temp_lo) VALUES ('1994-11-29', 'Hayward', 54, 37);
|
||||
|
||||
DESC EXTENDED students name;
|
||||
|
||||
INSERT INTO weather (date, city, temp_hi, temp_lo) VALUES ('1994-11-29', 'Hayward', 54, 37); -- unfinished
|
||||
|
||||
DROP TABLE IF EXISTS employable;
|
||||
|
||||
DROP TEMPORARY FUNCTION test_avg;
|
||||
|
||||
INSERT INTO products (product_no, name, price) SELECT * FROM db. ; -- unfinished
|
Reference in New Issue
Block a user