You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by hu...@apache.org on 2016/09/02 06:37:22 UTC
incubator-hawq git commit: HAWQ-1032. Set bucket number of child
partition to parent partition only when policy type equals to
POLICYTYPE_PARTITIONED.
Repository: incubator-hawq
Updated Branches:
refs/heads/master 1fce139d5 -> 47892a1fd
HAWQ-1032. Set bucket number of child partition to parent partition only when policy type equals to POLICYTYPE_PARTITIONED.
Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/47892a1f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/47892a1f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/47892a1f
Branch: refs/heads/master
Commit: 47892a1fd1a10363a6c83ca0b95d8ad2c5855434
Parents: 1fce139
Author: hzhang2 <zh...@163.com>
Authored: Fri Sep 2 14:32:13 2016 +0800
Committer: hzhang2 <zh...@163.com>
Committed: Fri Sep 2 14:36:53 2016 +0800
----------------------------------------------------------------------
src/backend/cdb/cdbpartition.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/47892a1f/src/backend/cdb/cdbpartition.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpartition.c b/src/backend/cdb/cdbpartition.c
index 06e4805..eb157ed 100644
--- a/src/backend/cdb/cdbpartition.c
+++ b/src/backend/cdb/cdbpartition.c
@@ -6623,7 +6623,7 @@ atpxPartAddList(Relation rel,
/* propagate owner */
((CreateStmt *)q->utilityStmt)->ownerid = ownerid;
/* child partition should have the same bucket number with parent partition */
- if (parPolicy) {
+ if (parPolicy && parPolicy->ptype == POLICYTYPE_PARTITIONED) {
((CreateStmt *)q->utilityStmt)->policy->bucketnum = parPolicy->bucketnum;
}
}