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/impala/suggestion/fixtures/multipleStatement.sql
Normal file
21
test/parser/impala/suggestion/fixtures/multipleStatement.sql
Normal file
@ -0,0 +1,21 @@
|
||||
SELECT * FROM -- unfinished
|
||||
|
||||
CREATE VIEW my_view AS SELECT * FROM my_table;
|
||||
|
||||
create table census (name string, census_year int) partitioned by (year int);
|
||||
|
||||
ALTER VIEW v1 RENAME TO db2.v2;
|
||||
|
||||
CREATE TABLE db. ; -- unfinished
|
||||
|
||||
INSERT INTO target_table (col1, col2, col3) PARTITION (year = 2016, month IN (10, 11, 12)) SELECT * FROM dual;
|
||||
|
||||
EXPLAIN INSERT INTO t1 VALUES (1, 'one'), (2, 'two'), (3, 'three');
|
||||
|
||||
INSERT INTO VALUES (100, 99.9 / 10, 'abc', true, now ()); -- unfinished
|
||||
|
||||
ALTER TABLE my_table REPLACE COLUMNS (age INT COMMENT 'Updated Age');
|
||||
|
||||
ALTER DATABASE my_db SET OWNER USER 'impala';
|
||||
|
||||
INSERT INTO t2 (c1) SELECT c1 FROM t1.; -- unfinished
|
Reference in New Issue
Block a user