You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/07/13 18:27:00 UTC

[jira] [Commented] (SPARK-30282) Migrate SHOW TBLPROPERTIES to new framework

    [ https://issues.apache.org/jira/browse/SPARK-30282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17156900#comment-17156900 ] 

Apache Spark commented on SPARK-30282:
--------------------------------------

User 'imback82' has created a pull request for this issue:
https://github.com/apache/spark/pull/28375

> Migrate SHOW TBLPROPERTIES to new framework
> -------------------------------------------
>
>                 Key: SPARK-30282
>                 URL: https://issues.apache.org/jira/browse/SPARK-30282
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Terry Kim
>            Assignee: Terry Kim
>            Priority: Major
>             Fix For: 3.0.0
>
>
> For the following v2 commands, _Analyzer.ResolveTables_ does not check against the temp views before resolving _UnresolvedV2Relation_, thus it always resolves _UnresolvedV2Relation_ to a table:
>  * ALTER TABLE
>  * DESCRIBE TABLE
>  * SHOW TBLPROPERTIES
> Thus, in the following example, 't' will be resolved to a table, not a temp view:
> {code:java}
> sql("CREATE TEMPORARY VIEW t AS SELECT 2 AS i")
> sql("CREATE TABLE testcat.ns.t USING csv AS SELECT 1 AS i")
> sql("USE testcat.ns")
> sql("SHOW TBLPROPERTIES t") // 't' is resolved to a table
> {code}
> For V2 commands, if a table is resolved to a temp view, it should error out with a message that v2 command cannot handle temp views.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org