mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
fix unexpected modification of original ORDER BY ast [#CLICKHOUSE-3859]
This commit is contained in:
parent
61328a2c9b
commit
c9b97ae86c
@ -353,8 +353,8 @@ ASTPtr MergeTreeData::extractKeyExpressionList(const ASTPtr & node)
|
|||||||
|
|
||||||
if (expr_func && expr_func->name == "tuple")
|
if (expr_func && expr_func->name == "tuple")
|
||||||
{
|
{
|
||||||
/// Primary key is specified in tuple.
|
/// Primary key is specified in tuple, extract its arguments.
|
||||||
return expr_func->children.at(0);
|
return expr_func->arguments->clone();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user