MapReduce服务 MRS-CREATE SECONDARY INDEX:示例

时间:2023-11-01 16:25:29

示例

create table productdb.productSalesTable(id int,price int,productName string,city string) stored as carbondata;

CREATE INDEX productNameIndexTable on table productdb.productSalesTable (productName,city) as 'carbondata' ;

上述示例将创建名为“productdb.productNameIndexTable”的二级表并加载所提供列的索引信息。

support.huaweicloud.com/cmpntguide-mrs/mrs_01_1445.html