You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by wangweiyi <co...@foxmail.com> on 2016/10/17 07:50:54 UTC

how to create index on column within column family

Hello everyone,


I'm using Phoenix-4.8.0 with HBase-0.98, and trying to create index on my table following the link (https://phoenix.apache.org/secondary_indexing.html). 


create index my_global_index on my_table ("cf".col);
OR
create local index my_local_index on my_table ("cf".col);


The create statement returns correctly. But both could not work even add index hint. How to create index on column within column family?


Thanks,


Weiyi