spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Pfeiffer <...@preferred.jp>
Subject Re: How to list all registered tables in a sql context?
Date Mon, 08 Sep 2014 01:28:23 GMT
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

Mime
View raw message