Repository: incubator-hawq
Updated Branches:
  refs/heads/master 525e1cf9e -> a683b5c31


HAWQ-1035. fix a bug in mapping subpartition table name to table list in yml.
           should use extend() to add elements into a list


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/a683b5c3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/a683b5c3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/a683b5c3

Branch: refs/heads/master
Commit: a683b5c31495f8895b696f05cb514f2636c900fa
Parents: 525e1cf
Author: Wen Lin <w...@pivotal.io>
Authored: Tue Sep 20 12:02:48 2016 +0800
Committer: Wen Lin <w...@pivotal.io>
Committed: Tue Sep 20 12:02:48 2016 +0800

----------------------------------------------------------------------
 tools/bin/hawqregister | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a683b5c3/tools/bin/hawqregister
----------------------------------------------------------------------
diff --git a/tools/bin/hawqregister b/tools/bin/hawqregister
index 932fef1..153ea9d 100755
--- a/tools/bin/hawqregister
+++ b/tools/bin/hawqregister
@@ -601,7 +601,7 @@ class HawqRegister(object):
         mappings = []
         for pos, constraint in enumerate(self.partitions_constraint):
             if partitions.has_key(constraint):
-                mappings = ([(partitions[constraint], 
(self.partitions_filepaths[pos][i], self.partitions_filesizes[pos][i]))
+                mappings.extend([(partitions[constraint], 
(self.partitions_filepaths[pos][i], self.partitions_filesizes[pos][i]))
                             for i in 
xrange(len(self.partitions_filepaths[pos]))])
         return mappings
 

Reply via email to