spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-21085) Failed to read the partitioned table created by Spark 2.1
Date Wed, 14 Jun 2017 08:29:00 GMT

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

Wenchen Fan resolved SPARK-21085.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.2.0

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

> Failed to read the partitioned table created by Spark 2.1
> ---------------------------------------------------------
>
>                 Key: SPARK-21085
>                 URL: https://issues.apache.org/jira/browse/SPARK-21085
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>            Priority: Blocker
>             Fix For: 2.2.0
>
>
> Spark 2.2 is unable to read the partitioned table created by Spark 2.1 when the table
schema does not put the partitioning column at the end of the schema. 
> {noformat}
> assert(partitionFields.map(_.name) == partitionColumnNames)
> {noformat}
> The codes are from the following files:
> https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala#L234-L236
> When reading the table metadata from the metastore, we also need to reorder the columns.




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