spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yin Huai (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-14346) SHOW CREATE TABLE command (Native)
Date Thu, 12 May 2016 03:45:13 GMT

     [ https://issues.apache.org/jira/browse/SPARK-14346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yin Huai resolved SPARK-14346.
------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request 12781
[https://github.com/apache/spark/pull/12781]

> SHOW CREATE TABLE command (Native)
> ----------------------------------
>
>                 Key: SPARK-14346
>                 URL: https://issues.apache.org/jira/browse/SPARK-14346
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Xin Wu
>             Fix For: 2.0.0
>
>
> This command will return a CREATE TABLE command in SQL. Right now, we just throw exception
(I was not sure how often people will use it). Since it is a pretty standalone work (generating
a CREATE TABLE command based on the metadata of a table) and people may find it pretty useful,
I am thinking to get it in 2.0. Hive's implementation can be found at https://github.com/apache/hive/blob/release-1.2.1/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java#L1898-L2126.
The main difference for spark is that if we have a data source table, we should use Spark's
syntax (CREATE TABLE ... USING ... OPTIONS) instead of Hive's syntax.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message