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-496. Add unit to output of datalocality info of analyze.
Date Tue, 08 Mar 2016 03:02:53 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 5b2302961 -> 937ed15af


HAWQ-496. Add unit to output of datalocality info of analyze.


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

Branch: refs/heads/master
Commit: 937ed15afd6171a2cb2b6eccb3ffd1dcb5b42035
Parents: 5b23029
Author: hubertzhang <hzhang@pivotal.io>
Authored: Tue Mar 8 09:09:50 2016 +0800
Committer: hubertzhang <hzhang@pivotal.io>
Committed: Tue Mar 8 11:02:29 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbdatalocality.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/937ed15a/src/backend/cdb/cdbdatalocality.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdatalocality.c b/src/backend/cdb/cdbdatalocality.c
index 0561d2e..f05e0b1 100644
--- a/src/backend/cdb/cdbdatalocality.c
+++ b/src/backend/cdb/cdbdatalocality.c
@@ -3383,8 +3383,8 @@ static void print_datalocality_overall_log_information(SplitAllocResult
*result,
 	elog(
 			LOG, "data locality ratio: %.3f; virtual segment number: %d; "
 			"different host number: %d; virtual segment number per host(avg/min/max): (%d/%d/%d);
"
-			"segment size(avg/min/max): (%.3f/"INT64_FORMAT"/"INT64_FORMAT"); "
-			"segment size with penalty(avg/min/max): (%.3f/"INT64_FORMAT"/"INT64_FORMAT"); continuity(avg/min/max):
(%.3f/%.3f/%.3f)."
+			"segment size(avg/min/max): (%.3f B/"INT64_FORMAT" B/"INT64_FORMAT" B); "
+			"segment size with penalty(avg/min/max): (%.3f B/"INT64_FORMAT" B/"INT64_FORMAT" B); continuity(avg/min/max):
(%.3f/%.3f/%.3f)."
 			,log_context->datalocalityRatio,assignment_context->virtual_segment_num,log_context->numofDifferentHost,
 			log_context->avgSegmentNumofHost,log_context->minSegmentNumofHost,log_context->maxSegmentNumofHost,
 			log_context->avgSizeOverall,log_context->minSizeSegmentOverall,log_context->maxSizeSegmentOverall,
@@ -3394,8 +3394,8 @@ static void print_datalocality_overall_log_information(SplitAllocResult
*result,
 
 	appendStringInfo(result->datalocalityInfo, "data locality ratio: %.3f; virtual segment
number: %d; "
 			"different host number: %d; virtual segment number per host(avg/min/max): (%d/%d/%d);
"
-			"segment size(avg/min/max): (%.3f/"INT64_FORMAT"/"INT64_FORMAT"); "
-			"segment size with penalty(avg/min/max): (%.3f/"INT64_FORMAT"/"INT64_FORMAT"); continuity(avg/min/max):
(%.3f/%.3f/%.3f)."
+			"segment size(avg/min/max): (%.3f B/"INT64_FORMAT" B/"INT64_FORMAT" B); "
+			"segment size with penalty(avg/min/max): (%.3f B/"INT64_FORMAT" B/"INT64_FORMAT" B); continuity(avg/min/max):
(%.3f/%.3f/%.3f)."
 			,log_context->datalocalityRatio,assignment_context->virtual_segment_num,log_context->numofDifferentHost,
 			log_context->avgSegmentNumofHost,log_context->minSegmentNumofHost,log_context->maxSegmentNumofHost,
 			log_context->avgSizeOverall,log_context->minSizeSegmentOverall,log_context->maxSizeSegmentOverall,


Mime
View raw message