Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14962#discussion_r77765007
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/internal/CatalogImpl.scala ---
    @@ -134,11 +134,26 @@ class CatalogImpl(sparkSession: SparkSession) extends 
Catalog {
       }
     
       /**
    -   * Returns a list of columns for the given table in the current database.
    +   * Returns a list of columns for the temp view matching the given name, 
or for the given table in
    +   * the current database.
        */
       @throws[AnalysisException]("table does not exist")
       override def listColumns(tableName: String): Dataset[Column] = {
    --- End diff --
    
    We are having a [test 
case](https://github.com/apache/spark/blob/c0ae6bc6ea38909730fad36e653d3c7ab0a84b44/sql/core/src/test/scala/org/apache/spark/sql/internal/CatalogSuite.scala#L239-L242)
 for `listColumns` on temporary views. However, it does not check results. 
Maybe we can correct it in this PR.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to