MAPREDUCE服务 MRS-CarbonData表操作并发语法说明
CarbonData表操作并发语法说明
DDL和DML中的操作,执行前,需要获取对应的锁,各操作需要获取锁的情况见表1 操作获取锁一览表,√表示需要获取该锁,一个操作仅在获取到所有需要获取的锁后,才能继续执行。
任意两个操作是否可以并发执行,可以通过如下方法确定:表1两行代表两个操作,这两行没有任意一列都标记√,即不存在某一列两行全为√。
操作 |
METADATA_LOCK |
COMPACTION_LOCK |
DROP_TABLE_LOCK |
DELETE_SEGMENT_LOCK |
CLEAN_FILES_LOCK |
ALTER_PARTITION_LOCK |
UPDATE_LOCK |
STREAMING_LOCK |
CONCURRENT_LOAD_LOCK |
SEGMENT_LOCK |
---|---|---|---|---|---|---|---|---|---|---|
CREATE TABLE |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
CREATE TABLE As SELECT |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
DROP TABLE |
√ |
- |
√ |
- |
- |
- |
- |
√ |
- |
- |
ALTER TABLE COMPACTION |
- |
√ |
- |
- |
- |
- |
√ |
- |
- |
- |
TABLE RENAME |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
ADD COLUMNS |
√ |
√ |
- |
- |
- |
- |
- |
- |
- |
- |
DROP COLUMNS |
√ |
√ |
- |
- |
- |
- |
- |
- |
- |
- |
CHANGE DATA TYPE |
√ |
√ |
- |
- |
- |
- |
- |
- |
- |
- |
REFRESH TABLE |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
REGISTER INDEX TABLE |
√ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
REFRESH INDEX |
- |
√ |
- |
- |
- |
- |
- |
- |
- |
- |
LOAD DATA/INSERT INTO |
- |
- |
- |
- |
- |
- |
- |
- |
√ |
√ |
UPDATE CARBON TABLE |
√ |
√ |
- |
- |
- |
- |
√ |
- |
- |
- |
DELETE RECORDS from CARBON TABLE |
√ |
√ |
- |
- |
- |
- |
√ |
- |
- |
- |
DELETE SEGMENT by ID |
- |
- |
- |
√ |
√ |
- |
- |
- |
- |
- |
DELETE SEGMENT by DATE |
- |
- |
- |
√ |
√ |
- |
- |
- |
- |
- |
SHOW SEGMENTS |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
CREATE SECONDARY INDEX |
√ |
√ |
- |
√ |
- |
- |
- |
- |
- |
- |
SHOW SECONDARY INDEXES |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
DROP SECONDARY INDEX |
√ |
- |
√ |
- |
- |
- |
- |
- |
- |
- |
CLEAN FILES |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
SET/RESET |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Add Hive Partition |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Drop Hive Partition |
√ |
√ |
√ |
√ |
√ |
√ |
- |
- |
- |
- |
Drop Partition |
√ |
√ |
√ |
√ |
√ |
√ |
- |
- |
- |
- |
Alter table set |
√ |
√ |
- |
- |
- |
- |
- |
- |
- |
- |
- Hudi服务_什么是Hudi_如何使用Hudi
- GaussDB数据库SQL语法_SQL语法_CREATE_ALTER
- MapReduce服务_什么是Hive_如何使用Hive
- 什么是报表中心-报表包含哪几类-好会计中如何操作报表
- MapReduce服务_什么是MapReduce服务_什么是HBase
- MapReduce服务_什么是ClickHouse_如何使用ClickHouse
- 数据缓存_数据高并发_数据高可用-华为云
- GaussDB(DWS)服务_什么是IoT数仓_如何使用IoT数仓
- 申请企业邮箱_企业邮箱操作方式功能列表
- MapReduce服务_如何使用MapReduce服务_MRS集群客户端安装与使用