[ https://issues.apache.org/jira/browse/SPARK-21785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16137726#comment-16137726 ]
liupengcheng commented on SPARK-21785: -------------------------------------- [~dongjoon] Impala now support this kind of syntax. So I think it's much more convenient if SparkSQL can support it. > Support create table from a file schema > --------------------------------------- > > Key: SPARK-21785 > URL: https://issues.apache.org/jira/browse/SPARK-21785 > Project: Spark > Issue Type: Wish > Components: SQL > Affects Versions: 2.1.1, 2.2.0 > Reporter: liupengcheng > Labels: sql > > Current spark doest not support creating a table from a file schema > for example: > {code:java} > CREATE EXTERNAL TABLE IF NOT EXISTS test LIKE PARQUET > '/user/test/abc/a.snappy.parquet' STORED AS PARQUET LOCATION > '/user/test/def/'; > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org