You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2017/06/13 23:28:00 UTC
[jira] [Updated] (SPARK-21085) Failed to read the partitioned table
created by Spark 2.1
[ https://issues.apache.org/jira/browse/SPARK-21085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Li updated SPARK-21085:
----------------------------
Summary: Failed to read the partitioned table created by Spark 2.1 (was: Failed to read the table created by Spark 2.1)
> 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
>
> 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