fix unexpected modification of original ORDER BY ast [#CLICKHOUSE-3859]

This commit is contained in:
Alexey Zatelepin 2018-12-05 17:02:34 +03:00
parent 61328a2c9b
commit c9b97ae86c

View File

@ -353,8 +353,8 @@ ASTPtr MergeTreeData::extractKeyExpressionList(const ASTPtr & node)
if (expr_func && expr_func->name == "tuple")
{
/// Primary key is specified in tuple.
return expr_func->children.at(0);
/// Primary key is specified in tuple, extract its arguments.
return expr_func->arguments->clone();
}
else
{