aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorDongjoon Hyun <dongjoon@apache.org>2016-07-11 22:45:22 +0200
committerHerman van Hovell <hvanhovell@databricks.com>2016-07-11 22:45:22 +0200
commit840853ed06d63694bf98b21a889a960aac6ac0ac (patch)
tree579b5a42ca2daae6e2c0fbf4d33fd0216813d282 /R
parentffcb6e055a28f36208ed058a42df09c154555332 (diff)
downloadspark-840853ed06d63694bf98b21a889a960aac6ac0ac.tar.gz
spark-840853ed06d63694bf98b21a889a960aac6ac0ac.tar.bz2
spark-840853ed06d63694bf98b21a889a960aac6ac0ac.zip
[SPARK-16458][SQL] SessionCatalog should support `listColumns` for temporary tables
## What changes were proposed in this pull request? Temporary tables are used frequently, but `spark.catalog.listColumns` does not support those tables. This PR make `SessionCatalog` supports temporary table column listing. **Before** ```scala 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`.; ``` **After** ``` scala> spark.catalog.listColumns("t1").collect() res2: Array[org.apache.spark.sql.catalog.Column] = Array(Column[name='id', description='id', dataType='bigint', nullable='false', isPartition='false', isBucket='false']) ``` ## How was this patch tested? Pass the Jenkins tests including a new testcase. Author: Dongjoon Hyun <dongjoon@apache.org> Closes #14114 from dongjoon-hyun/SPARK-16458.
Diffstat (limited to 'R')
0 files changed, 0 insertions, 0 deletions