[
https://issues.apache.org/jira/browse/SPARK-3299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178572#comment-14178572
]
Bill Bejeck commented on SPARK-3299:
------------------------------------
This change is a little more involved as it requires modifying the Catalog
trait.
My current plan is to add an abstract method to the Catalog trait and have any
objects extending Catalog override a 'listTables' method.
The SQLContext object uses an instance of SimpleCatalog for any table
operations. Any additional public method defined to list the tables will
delegate to the SimpleCatalog instance. This approach follows the pattern used
for registering tables with the SQLContext.
Is this the best approach?
> [SQL] Public API in SQLContext to list tables
> ---------------------------------------------
>
> Key: SPARK-3299
> URL: https://issues.apache.org/jira/browse/SPARK-3299
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 1.0.2
> Reporter: Evan Chan
> Assignee: Bill Bejeck
> Priority: Minor
> Labels: newbie
>
> There is no public API in SQLContext to list the current tables. This would
> be pretty helpful.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]