[67/80] [abbrv] incubator-hawq git commit: HAWQ-862. Make user defined function get_ao_distribution work.
HAWQ-862. Make user defined function get_ao_distribution work. Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/87b5d8f9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/87b5d8f9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/87b5d8f9 Branch: refs/heads/HAWQ-543 Commit: 87b5d8f9b2bfca2e865fa3004d8c5cf6a73a2e4a Parents: c31209d Author: hzhang2 Authored: Fri Jun 24 09:10:33 2016 +0800 Committer: hzhang2 Committed: Fri Jun 24 09:26:17 2016 +0800 -- src/backend/access/appendonly/aosegfiles.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/87b5d8f9/src/backend/access/appendonly/aosegfiles.c -- diff --git a/src/backend/access/appendonly/aosegfiles.c b/src/backend/access/appendonly/aosegfiles.c index 6da6a21..993e489 100644 --- a/src/backend/access/appendonly/aosegfiles.c +++ b/src/backend/access/appendonly/aosegfiles.c @@ -1425,9 +1425,9 @@ get_ao_distribution_name(PG_FUNCTION_ARGS) * assemble our query string */ initStringInfo(&sqlstmt); - appendStringInfo(&sqlstmt, "select gp_segment_id,sum(tupcount) " - "from gp_dist_random('pg_aoseg.%s') " - "group by (gp_segment_id)", aoseg_relname); + appendStringInfo(&sqlstmt, "select segno,sum(tupcount) " + "from pg_aoseg.%s " + "group by (segno)", aoseg_relname); PG_TRY(); {
[67/80] [abbrv] incubator-hawq git commit: HAWQ-862. Make user defined function get_ao_distribution work.
HAWQ-862. Make user defined function get_ao_distribution work. Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/87b5d8f9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/87b5d8f9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/87b5d8f9 Branch: refs/heads/HAWQ-537 Commit: 87b5d8f9b2bfca2e865fa3004d8c5cf6a73a2e4a Parents: c31209d Author: hzhang2 Authored: Fri Jun 24 09:10:33 2016 +0800 Committer: hzhang2 Committed: Fri Jun 24 09:26:17 2016 +0800 -- src/backend/access/appendonly/aosegfiles.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/87b5d8f9/src/backend/access/appendonly/aosegfiles.c -- diff --git a/src/backend/access/appendonly/aosegfiles.c b/src/backend/access/appendonly/aosegfiles.c index 6da6a21..993e489 100644 --- a/src/backend/access/appendonly/aosegfiles.c +++ b/src/backend/access/appendonly/aosegfiles.c @@ -1425,9 +1425,9 @@ get_ao_distribution_name(PG_FUNCTION_ARGS) * assemble our query string */ initStringInfo(&sqlstmt); - appendStringInfo(&sqlstmt, "select gp_segment_id,sum(tupcount) " - "from gp_dist_random('pg_aoseg.%s') " - "group by (gp_segment_id)", aoseg_relname); + appendStringInfo(&sqlstmt, "select segno,sum(tupcount) " + "from pg_aoseg.%s " + "group by (segno)", aoseg_relname); PG_TRY(); {