spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-6130) support if not exists for insert overwrite into partition in hiveQl
Date Tue, 03 Mar 2015 03:11:04 GMT

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

Apache Spark commented on SPARK-6130:
-------------------------------------

User 'adrian-wang' has created a pull request for this issue:
https://github.com/apache/spark/pull/4865

> support if not exists for insert overwrite into partition in hiveQl
> -------------------------------------------------------------------
>
>                 Key: SPARK-6130
>                 URL: https://issues.apache.org/jira/browse/SPARK-6130
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>            Reporter: Adrian Wang
>
> Standard syntax:
> INSERT OVERWRITE TABLE tablename1 [PARTITION (partcol1=val1, partcol2=val2 ...) [IF NOT
EXISTS]] select_statement1 FROM from_statement;
> INSERT INTO TABLE tablename1 [PARTITION (partcol1=val1, partcol2=val2 ...)] select_statement1
FROM from_statement;
>  
> Hive extension (multiple inserts):
> FROM from_statement
> INSERT OVERWRITE TABLE tablename1 [PARTITION (partcol1=val1, partcol2=val2 ...) [IF NOT
EXISTS]] select_statement1
> [INSERT OVERWRITE TABLE tablename2 [PARTITION ... [IF NOT EXISTS]] select_statement2]
> [INSERT INTO TABLE tablename2 [PARTITION ...] select_statement2] ...;
> FROM from_statement
> INSERT INTO TABLE tablename1 [PARTITION (partcol1=val1, partcol2=val2 ...)] select_statement1
> [INSERT INTO TABLE tablename2 [PARTITION ...] select_statement2]
> [INSERT OVERWRITE TABLE tablename2 [PARTITION ... [IF NOT EXISTS]] select_statement2]
...;
>  
> Hive extension (dynamic partition inserts):
> INSERT OVERWRITE TABLE tablename PARTITION (partcol1[=val1], partcol2[=val2] ...) select_statement
FROM from_statement;
> INSERT INTO TABLE tablename PARTITION (partcol1[=val1], partcol2[=val2] ...) select_statement
FROM from_statement;



--
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