Feat/auto complete (#175)
* feat: update hive grammar to adapt to c3 * feat: support viewName, dbName, fnName autoComplete to hive * test: add hive suggestion unit test * test: optimze flink suggestion unit tests
This commit is contained in:
19
test/parser/hive/suggestion/fixtures/syntaxSuggestion.sql
Normal file
19
test/parser/hive/suggestion/fixtures/syntaxSuggestion.sql
Normal file
@ -0,0 +1,19 @@
|
||||
INSERT INTO db.tb ;
|
||||
|
||||
SELECT * FROM db.;
|
||||
|
||||
CREATE TABLE db. VALUES;
|
||||
|
||||
DROP TABLE IF EXISTS db.a;
|
||||
|
||||
CREATE OR REPLACE VIEW db.v;
|
||||
|
||||
DROP VIEW db.v ;
|
||||
|
||||
CREATE FUNCTION fn1;
|
||||
|
||||
SELECT name, calculate_age(birthdate) AS age FROM students;
|
||||
|
||||
CREATE DATABASE db;
|
||||
|
||||
DROP SCHEMA IF EXISTS sch;
|
20
test/parser/hive/suggestion/fixtures/tokenSuggestion.sql
Normal file
20
test/parser/hive/suggestion/fixtures/tokenSuggestion.sql
Normal file
@ -0,0 +1,20 @@
|
||||
ALTER
|
||||
;
|
||||
CREATE
|
||||
;
|
||||
DELETE
|
||||
;
|
||||
DESCRIBE
|
||||
;
|
||||
DROP
|
||||
;
|
||||
EXPORT
|
||||
;
|
||||
IMPORT
|
||||
;
|
||||
INSERT
|
||||
;
|
||||
LOAD
|
||||
;
|
||||
SHOW
|
||||
;
|
Reference in New Issue
Block a user