spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-16458) SessionCatalog should support `listColumns` for temporary tables
Date Sat, 09 Jul 2016 10:02:11 GMT

     [ https://issues.apache.org/jira/browse/SPARK-16458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Apache Spark reassigned SPARK-16458:
------------------------------------

    Assignee: Apache Spark

> 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
>            Assignee: Apache Spark
>            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


Mime
View raw message