spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Pfeiffer <>
Subject Re: How to list all registered tables in a sql context?
Date Mon, 08 Sep 2014 01:28:23 GMT

On Sat, Sep 6, 2014 at 1:40 AM, Jianshi Huang <>

> 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).


View raw message