You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Matthew Taylor (JIRA)" <ji...@apache.org> on 2014/11/03 13:13:33 UTC

[jira] [Created] (SPARK-4203) Partition directories in random order when inserting into hive table

Matthew Taylor created SPARK-4203:
-------------------------------------

             Summary: Partition directories in random order when inserting into hive table
                 Key: SPARK-4203
                 URL: https://issues.apache.org/jira/browse/SPARK-4203
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 1.1.0, 1.2.0
            Reporter: Matthew Taylor


When doing an insert into hive table with partitions the folders written to the file system are in a random order instead of the order defined in table creation. Seems that the loadPartition method in Hive.java has a Map<String,String> parameter but expects to be called with a map that has a defined ordering such as  LinkedHashMap. Have a patch which I will do a PR for.     



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