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:26:01 UTC

[jira] [Created] (SPARK-21085) Failed to read the table created by Spark 2.1

Xiao Li created SPARK-21085:
-------------------------------

             Summary: Failed to read the 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. 


assert(partitionFields.map(_.name) == partitionColumnNames)



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