You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2016/07/09 10:00:14 UTC
[jira] [Updated] (SPARK-16458) SessionCatalog should support
`listColumns` for temporary tables
[ https://issues.apache.org/jira/browse/SPARK-16458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated SPARK-16458:
----------------------------------
Description:
Temporary tables are used frequently, but `spark.catalog.listColumns` does not support those tables.
{code}
scala> spark.range(10).createOrReplaceTempView("t1")
scala> spark.catalog.listTables().collect()
res1: Array[org.apache.spark.sql.catalog.Table] = Array(Table[name='t1', tableType='TEMPORARY', isTemporary='true'])
scala> spark.catalog.listColumns("t1").collect()
org.apache.spark.sql.AnalysisException: Table 't1' does not exist in database 'default'.;
{code}
This issue make `SessionCatalog` supports temporary table column listing.
was:
Temporary tables are used frequently, but `spark.catalog.listColumns` does not support those tables.
{code}
scala> spark.range(10).createOrReplaceTempView("t1")
scala> spark.catalog.listTables().collect()
res1: Array[org.apache.spark.sql.catalog.Table] = Array(Table[name='t1', tableType='TEMPORARY', isTemporary='true'])
scala> spark.catalog.listColumns("t1").collect()
{code}
This issue make `SessionCatalog` supports temporary table column listing.
> SessionCatalog should support `listColumns` for temporary tables
> ----------------------------------------------------------------
>
> Key: SPARK-16458
> URL: https://issues.apache.org/jira/browse/SPARK-16458
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Reporter: Dongjoon Hyun
> Priority: Minor
>
> Temporary tables are used frequently, but `spark.catalog.listColumns` does not support those tables.
> {code}
> scala> spark.range(10).createOrReplaceTempView("t1")
> scala> spark.catalog.listTables().collect()
> res1: Array[org.apache.spark.sql.catalog.Table] = Array(Table[name='t1', tableType='TEMPORARY', isTemporary='true'])
> scala> spark.catalog.listColumns("t1").collect()
> org.apache.spark.sql.AnalysisException: Table 't1' does not exist in database 'default'.;
> {code}
> This issue make `SessionCatalog` supports temporary table column listing.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org