phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vivek Paranthaman <vivek.parantha...@bizruntime.com>
Subject Re: Not working as expected
Date Tue, 22 Nov 2016 14:42:55 GMT
Hi Sergey,

It retrieves null in ResultSet...!

Any other solution?

On Wed, Oct 26, 2016 at 6:12 AM, Sergey Soldatov <sergeysoldatov@gmail.com>
wrote:

> Hi Vivek,
> You may use meta information for the connection. Once you created
> connection using Phoenix jdbc-driver, you may run following code:
>
> ResultSet rs = connection.meta.getTables(connection.meta.getConnection().getCatalog(),
null, "%", new String[] {"TABLE"});
>
> Iterating over the result set you may get table name ("TABLE_NAME") and
> schema ("TABLE_SCHEM") values.
>
> Thanks,
> Sergey
> On Tue, Oct 25, 2016 at 1:51 AM, Vivek Paranthaman <
> vivek.paranthaman@bizruntime.com> wrote:
>
>> Hi,
>>
>> Anybody know, how to get Schema and available tables using jdbc-driver
>> from Hbase?
>>
>
>

Mime
View raw message