I have Apache Phoenix 4.4 installed on HDP 2.3. Does anyone know how to view all indexes created on a table? Like MySQL has show index on table_name
query. I couldn't find help on the documentation here.
Asked
Active
Viewed 4,392 times
3

Raman
- 1,221
- 13
- 20
-
can you please comment on why the question was downvoted? – Raman Aug 30 '16 at 19:31
2 Answers
4
In case you are using sqlline, which is, by default, bundled with Phoenix, you should be able to see existing indices by issuing command
!indexes ${schema_name}.${table_name}

Paranoja
- 101
- 4
0
Can view index and table data this way in case sqlline is not available:
SELECT * FROM "SYSTEM"."CATALOG" WHERE TABLE_SCHEM = '${SCHEMA_NAME}' AND TABLE_TYPE = 'i';

Simbosan
- 244
- 2
- 11