{"push_id":1198193897,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"840853ed06d63694bf98b21a889a960aac6ac0ac","before":"ffcb6e055a28f36208ed058a42df09c154555332","commits":[{"sha":"840853ed06d63694bf98b21a889a960aac6ac0ac","author":{"name":"Dongjoon Hyun","email":"1bf3a3c57610939bd1558dffb564906c959abecb@apache.org"},"message":"[SPARK-16458][SQL] SessionCatalog should support `listColumns` for temporary tables\n\n## What changes were proposed in this pull request?\n\nTemporary tables are used frequently, but `spark.catalog.listColumns` does not support those tables. This PR make `SessionCatalog` supports temporary table column listing.\n\n**Before**\n```scala\nscala> spark.range(10).createOrReplaceTempView(\"t1\")\n\nscala> spark.catalog.listTables().collect()\nres1: Array[org.apache.spark.sql.catalog.Table] = Array(Table[name=`t1`, tableType=`TEMPORARY`, isTemporary=`true`])\n\nscala> spark.catalog.listColumns(\"t1\").collect()\norg.apache.spark.sql.AnalysisException: Table `t1` does not exist in database `default`.;\n```\n\n**After**\n```\nscala> spark.catalog.listColumns(\"t1\").collect()\nres2: Array[org.apache.spark.sql.catalog.Column] = Array(Column[name='id', description='id', dataType='bigint', nullable='false', isPartition='false', isBucket='false'])\n```\n## How was this patch tested?\n\nPass the Jenkins tests including a new testcase.\n\nAuthor: Dongjoon Hyun <dongjoon@apache.org>\n\nCloses #14114 from dongjoon-hyun/SPARK-16458.","distinct":true,"url":"https://api.github.com/repos/dongjoon-hyun/spark/commits/840853ed06d63694bf98b21a889a960aac6ac0ac"}]}
{"actor":{"display_login":"dongjoon-hyun"}}