hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hubertzh...@apache.org
Subject incubator-hawq git commit: HAWQ-487. Ensure virtual segment of analyze not greate than GetUtilPartitionNum.
Date Thu, 03 Mar 2016 07:19:18 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master e88a257ad -> 2d36f1340


HAWQ-487. Ensure virtual segment of analyze not greate than GetUtilPartitionNum.


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

Branch: refs/heads/master
Commit: 2d36f1340a85758821bbef645b69756adab93713
Parents: e88a257
Author: hubertzhang <hzhang@pivotal.io>
Authored: Thu Mar 3 15:05:04 2016 +0800
Committer: hubertzhang <hzhang@pivotal.io>
Committed: Thu Mar 3 15:05:04 2016 +0800

----------------------------------------------------------------------
 src/backend/commands/analyze.c | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2d36f134/src/backend/commands/analyze.c
----------------------------------------------------------------------
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c
index 779aea5..91451d8 100644
--- a/src/backend/commands/analyze.c
+++ b/src/backend/commands/analyze.c
@@ -842,6 +842,10 @@ static int calculate_virtual_segment_number(List* candidateRelations)
{
 		totalDataSize >>= 27;
 		vsegNumber = totalDataSize + 1;
 	}
+	/*vsegNumber should be less than GetUtilPartitionNum*/
+	if(vsegNumber > GetUtilPartitionNum()){
+		vsegNumber = GetUtilPartitionNum();
+	}
 
 	return vsegNumber;
 }


Mime
View raw message