dc417e1381
* feat: feat: improve flinksql insertStatement * feat: complete insertFromSelectQueries syntax unit tests * feat: complete insertValuesIntoTable syntax unit tests * feat: improve insertValuesIntoTable sql case data * feat: complete insertMultipeTables unit cases * feat: depracate insertMulStatement grammar for 1.1.4 * fix: depracate unless files * test: recover jest.config info * feat: improve insertMultipleTable.sql test case * feat: build new flinksql parser and lexer * feat: generator new flink parser and lexer file * test: improve readSQL logic * test: fix insertMultipleTable sql error * test: recover jest.config.js info
48 lines
973 B
SQL
48 lines
973 B
SQL
INSERT INTO country_page_view
|
|
SELECT user,
|
|
cnt
|
|
FROM page_view_source;
|
|
|
|
INSERT INTO catalog1.db1.country_page_view
|
|
SELECT user,
|
|
cnt
|
|
FROM page_view_source;
|
|
|
|
|
|
--- Execute InsertStatement
|
|
EXECUTE
|
|
INSERT INTO country_page_view PARTITION (date = '2019-8-30', country = 'China')
|
|
SELECT user,
|
|
cnt
|
|
FROM page_view_source;
|
|
|
|
--- Partition Clause: Static Partition
|
|
INSERT INTO country_page_view PARTITION (date = '2019-8-30', country = 'China')
|
|
SELECT user,
|
|
cnt
|
|
FROM page_view_source;
|
|
|
|
--- Partition Clause: Dynamic Partition
|
|
INSERT INTO country_page_view PARTITION (date = '2019-8-30')
|
|
SELECT user,
|
|
cnt,
|
|
country
|
|
FROM page_view_source;
|
|
|
|
--- Column List Statement
|
|
INSERT INTO country_page_view PARTITION (date = '2019-8-30', country = 'China') (date, country)
|
|
SELECT user,
|
|
cnt
|
|
FROM page_view_source;
|
|
|
|
--- Insert Method: OverWrite
|
|
INSERT OVERWRITE country_page_view PARTITION (date = '2019-8-30')
|
|
SELECT user,
|
|
cnt,
|
|
country
|
|
FROM page_view_source;
|
|
|
|
|
|
|
|
|