spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Takeshi Yamamuro (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-21144) Unexpected results when the data schema and partition schema have the duplicate columns
Date Tue, 20 Jun 2017 02:03:00 GMT

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

Takeshi Yamamuro commented on SPARK-21144:
------------------------------------------

okay, I'm currently looking into this.

> Unexpected results when the data schema and partition schema have the duplicate columns
> ---------------------------------------------------------------------------------------
>
>                 Key: SPARK-21144
>                 URL: https://issues.apache.org/jira/browse/SPARK-21144
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Xiao Li
>
> {noformat}
>     withTempPath { dir =>
>       val basePath = dir.getCanonicalPath
>       spark.range(0, 3).toDF("foo").write.parquet(new Path(basePath, "foo=1").toString)
>       spark.range(0, 3).toDF("foo").write.parquet(new Path(basePath, "foo=a").toString)
>       spark.read.parquet(basePath).show()
>     }
> {noformat}
> The result of the above case is
> {noformat}
> +---+
> |foo|
> +---+
> |  1|
> |  1|
> |  a|
> |  a|
> |  1|
> |  a|
> +---+
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message