Github user chenghao-intel commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4506#discussion_r25408698
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala ---
    @@ -783,7 +783,7 @@ class SQLContext(@transient val sparkContext: 
SparkContext)
     
       /** Returns the specified table as a [[DataFrame]]. */
       def table(tableName: String): DataFrame =
    -    DataFrame(this, catalog.lookupRelation(Seq(tableName)))
    +    DataFrame(this, UnresolvedRelation(Seq(tableName)))
    --- End diff --
    
    Thank you @yhuai for the explanation. I've created another PR (#4784), I'd 
like to return the `Unresolved` logical plan for `lookupRelation`, which will 
be helpful for the `describe extended cache|table|view|data source table`. 
Probably we'd better to review #4784 first and then jump back to 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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to