Created 05-09-2017 10:12 PM
I started using %jdbc(phoenix) interpretor which is provided by default.
I am trying to see the list of tables by using
!tables
of phoenix , and getting the following error.
Created 05-10-2017 01:18 AM
"!tables" is a feature of Sqlline, not Phoenix.
I don't believe Phoenix has a standard SQL syntax for listing tables (such as `show tables`). You would have to use the DatabaseMetaData API that JDBC provides. I am not sure if Zeppelin exposes that for you.
https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getTables(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String[])
Created 10-27-2017 08:16 PM
select DISTINCT("TABLE_NAME") from SYSTEM.CATALOG;
this works from zeppelin
select DISTINCT("TABLE_NAME") from SYSTEM.CATALOG;