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-887. Query should be continued when bucket number of result hash relation is bigger than the on number of command external table.
Date Mon, 04 Jul 2016 07:15:26 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 745bdca4c -> c66cfbad1


HAWQ-887. Query should be continued when bucket number of result hash relation is bigger than
the on number of command external table.


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

Branch: refs/heads/master
Commit: c66cfbad1361d7d8e249d3e312f95d9566d1bcb3
Parents: 745bdca
Author: hzhang2 <zhanghuan929@163.com>
Authored: Mon Jul 4 14:54:51 2016 +0800
Committer: hzhang2 <zhanghuan929@163.com>
Committed: Mon Jul 4 14:54:51 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbdatalocality.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/c66cfbad/src/backend/cdb/cdbdatalocality.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdatalocality.c b/src/backend/cdb/cdbdatalocality.c
index c56232c..aaa4c8d 100644
--- a/src/backend/cdb/cdbdatalocality.c
+++ b/src/backend/cdb/cdbdatalocality.c
@@ -4218,7 +4218,7 @@ calculate_planner_segment_num(Query *query, QueryResourceLife resourceLife,
 			int maxTargetSegmentNumber = 0;
 			/* we keep resultRelationHashSegNum in the highest priority*/
 			if (context.resultRelationHashSegNum != 0) {
-				if ((context.resultRelationHashSegNum != context.externTableForceSegNum
+				if ((context.resultRelationHashSegNum < context.externTableForceSegNum
 						&& context.externTableForceSegNum != 0)
 						|| (context.resultRelationHashSegNum < context.externTableLocationSegNum)) {
 					cleanup_allocation_algorithm(&context);


Mime
View raw message