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:
@ -1,19 +0,0 @@
|
||||
CREATE TABLE orders (
|
||||
order_uid BIGINT,
|
||||
product_id BIGINT,
|
||||
price DECIMAL(32, 2),
|
||||
order_time TIMESTAMP(3)
|
||||
) WITH (
|
||||
'connector' = 'datagen'
|
||||
);
|
||||
|
||||
CREATE TABLE orders (
|
||||
order_uid BIGINT,
|
||||
product_id BIGINT,
|
||||
price DECIMAL(32, 2),
|
||||
order_time TIMESTAMP(3)
|
||||
) WITH (
|
||||
'connector' = 'datagen'
|
||||
);
|
||||
|
||||
use cat1.
|
@ -0,0 +1,31 @@
|
||||
SELECT * FROM -- unfinished
|
||||
|
||||
CREATE TEMPORARY VIEW IF NOT EXISTS v AS SELECT col1 FROM tbl;
|
||||
|
||||
CREATE TEMPORARY TABLE client_errors (
|
||||
log_time TIMESTAMP(3),
|
||||
request_line STRING,
|
||||
status_code STRING,
|
||||
size INT
|
||||
) WITH (
|
||||
'connector' = 'stream-x'
|
||||
);
|
||||
|
||||
ALTER VIEW v1 RENAME TO v2;
|
||||
|
||||
CREATE TABLE db. ; -- unfinished
|
||||
|
||||
LOAD MODULE CORE;
|
||||
|
||||
REMOVE JAR '<path_to_filename>.jar'
|
||||
|
||||
INSERT INTO VALUES (100, 99.9 / 10, 'abc', true, now ()); -- unfinished
|
||||
|
||||
CREATE DATABASE IF NOT EXISTS dataApi COMMENT 'test create database' WITH ('key1' = 'value1', 'key2.a' = 'value2.a');
|
||||
|
||||
DROP DATABASE IF EXISTS Orders RESTRICT;
|
||||
|
||||
INSERT INTO country_page_view
|
||||
SELECT `user`,
|
||||
cnt
|
||||
FROM db. ; -- unfinished
|
Reference in New Issue
Block a user