mirror of https://github.com/citusdata/citus.git
Adds GROUP BY DISTINCT to ruleutils_14.c
Relevant PG commit: be45be9c33a85e72cdaeb9967e9f6d2d00199e09pull/5209/head
parent
5bb538543d
commit
af2853d1de
|
@ -2358,6 +2358,8 @@ get_basic_select_query(Query *query, deparse_context *context,
|
|||
|
||||
appendContextKeyword(context, " GROUP BY ",
|
||||
-PRETTYINDENT_STD, PRETTYINDENT_STD, 1);
|
||||
if (query->groupDistinct)
|
||||
appendStringInfoString(buf, "DISTINCT ");
|
||||
|
||||
save_exprkind = context->special_exprkind;
|
||||
context->special_exprkind = EXPR_KIND_GROUP_BY;
|
||||
|
|
Loading…
Reference in New Issue