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 2016/05/30 23:49:12 UTC

[jira] [Commented] (SPARK-15655) Wrong Result when Fetching Partitioned Tables

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

Apache Spark commented on SPARK-15655:
--------------------------------------

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

> Wrong Result when Fetching Partitioned Tables
> ---------------------------------------------
>
>                 Key: SPARK-15655
>                 URL: https://issues.apache.org/jira/browse/SPARK-15655
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Xiao Li
>            Priority: Critical
>
> When fetching the partitioned table, the output contains wrong results regarding partitioning key. 
> {noformat}
> CREATE TABLE table_with_partition(c1 string) PARTITIONED BY (p1 string,p2 string,p3 string,p4 string,p5 string)
> INSERT OVERWRITE TABLE table_with_partition PARTITION (p1='a',p2='b',p3='c',p4='d',p5='e') SELECT 'blarr'
> SELECT p1, p2, p3, p4, p5, c1 FROM table_with_partition
> {noformat}
> {noformat}
> +---+---+---+---+---+-----+
> | p1| p2| p3| p4| p5|   c1|
> +---+---+---+---+---+-----+
> |  d|  e|  c|  b|  a|blarr|
> +---+---+---+---+---+-----+
> {noformat}



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