Repository: incubator-hawq Updated Branches: refs/heads/master a8da53f40 -> 8712bde26
HAWQ-999. Log_error when file count is not in proportion to bucket number of hash 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/8712bde2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/8712bde2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/8712bde2 Branch: refs/heads/master Commit: 8712bde26e516e1dbb69a145d5dba30c8804f359 Parents: a8da53f Author: hzhang2 <zhanghuan...@163.com> Authored: Tue Aug 16 11:11:02 2016 +0800 Committer: hzhang2 <zhanghuan...@163.com> Committed: Tue Aug 16 11:11:02 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/8712bde2/src/backend/cdb/cdbdatalocality.c ---------------------------------------------------------------------- diff --git a/src/backend/cdb/cdbdatalocality.c b/src/backend/cdb/cdbdatalocality.c index 3223a37..c475624 100644 --- a/src/backend/cdb/cdbdatalocality.c +++ b/src/backend/cdb/cdbdatalocality.c @@ -3797,7 +3797,7 @@ run_allocation_algorithm(SplitAllocResult *result, List *virtual_segments, Query FileCountBucketNumMismatch = fileCountInRelation % targetPolicy->bucketnum == 0 ? false : true; } - if (FileCountBucketNumMismatch && !allow_file_count_bucket_num_mismatch) { + if (isRelationHash && FileCountBucketNumMismatch && !allow_file_count_bucket_num_mismatch) { elog(ERROR, "file count %d in catalog is not in proportion to the bucket " "number %d of hash table with oid=%u, some data may be lost, if you " "still want to continue the query by considering the table as random, set GUC "