功能 | 是否支持 |
插入或覆寫(xiě)數(shù)據(jù)(INSERT INTO | INSERT OVERWRITE) | 支持insert {into|overwrite} table <table_name> [partition (<pt_spec>)] <select_statement> from <from_statement>; 支持指定列插入數(shù)據(jù):insert into table <table_name> [partition (<pt_spec>)] (<col_name> ,<col_name> ...) <select_statement> from <from_statement>; 支持插入數(shù)據(jù)排序。 insert {into|overwrite} table <table_name> [partition (<pt_spec>)] [(<col_name> [,<col_name> ...)]]
<select_statement>
from <from_statement>
[zorder by <zcol_name> [, <zcol_name> ...]];
|
插入或覆寫(xiě)動(dòng)態(tài)分區(qū)數(shù)據(jù)(DYNAMIC PARTITION) | 是 |
多路輸出(MULTI INSERT) | 是 |
VALUES | 是 |
LOAD | 否 |
COMMON TABLE EXPRESSION(CTE) | |
更新或刪除數(shù)據(jù)(UPDATE | DELETE) | 支持update 操作用于將Transactional表或Delta Table表中行對(duì)應(yīng)的單列或多列數(shù)據(jù)更新為新值。 --方式1
update <table_name> set <col1_name> = <value1> [, <col2_name> = <value2> ...] [WHERE <where_condition>];
--方式2
update <table_name> set (<col1_name> [, <col2_name> ...]) = (<value1> [, <value2> ...])[WHERE <where_condition>];
--方式3
UPDATE <table_name>
SET <col1_name> = <value1> [ , <col2_name> = <value2> , ... ]
[ FROM <additional_tables> ]
[ WHERE <where_condition> ]
支持使用clear column 命令清空普通表的列。 ALTER TABLE <table_name>
[partition ( <pt_spec>[, <pt_spec>....] )]
CLEAR COLUMN column1[, column2, column3, ...]
[without touch];
支持合并Transactional表文件。 alter table <table_name> [partition (<partition_key> = '<partition_value>' [, ...])] compact {minor|major};
|
MERGE INTO | 是 |
DROP COLUMNS(刪除表中列) | 是 |