提交 5fdd5a5d 编写于 作者: M Michael Kolupaev

clickhouse: OLAP-server compatibility: development [#CONV-6318].

上级 ee3cc4f8
......@@ -72,7 +72,7 @@ void QueryConverter::OLAPServerQueryToClickhouse(const QueryParseResult & query,
const QueryParseResult::Aggregate & aggregate = query.aggregates[i];
std::string s = convertAggregateFunction(aggregate.attribute, aggregate.parameter, aggregate.function);
if (i > 0)
if (query.key_attributes.size() + i > 0)
out_query += ", ";
out_query += s + " AS " + FirstWord(aggregate.function) + "_" + FirstWord(aggregate.attribute);
selected_expressions.push_back(s);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册