spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jianshi Huang <jianshi.hu...@gmail.com>
Subject Re: How to list all registered tables in a sql context?
Date Mon, 08 Sep 2014 06:53:54 GMT
Thanks Tobias,

I also found this: https://issues.apache.org/jira/browse/SPARK-3299

Looks like it's been working on.

Jianshi

On Mon, Sep 8, 2014 at 9:28 AM, Tobias Pfeiffer <tgp@preferred.jp> wrote:

> Hi,
>
> On Sat, Sep 6, 2014 at 1:40 AM, Jianshi Huang <jianshi.huang@gmail.com>
> wrote:
>
>> Err... there's no such feature?
>>
>
> The problem is that the SQLContext's `catalog` member is protected, so you
> can't access it from outside. If you subclass SQLContext, and make sure
> that `catalog` is always a `SimpleCatalog`, you can check `catalog.tables`
> (which is a HashMap).
>
> Tobias
>



-- 
Jianshi Huang

LinkedIn: jianshi
Twitter: @jshuang
Github & Blog: http://huangjs.github.com/

Mime
View raw message