MAPREDUCE服务 MRS-CREATE SECONDARY INDEX:示例

时间:2024-07-02 16:39:31

示例

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-lts-mrs/mrs_01_1445.html