mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
SQL user defined functions fix alias
This commit is contained in:
parent
c368b20dce
commit
cd08a078d1
@ -93,6 +93,11 @@ ASTPtr UserDefinedSQLFunctionMatcher::tryToReplaceFunction(const ASTFunction & f
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto function_alias = function.tryGetAlias();
|
||||||
|
|
||||||
|
if (!function_alias.empty())
|
||||||
|
function_body_to_update->setAlias(function_alias);
|
||||||
|
|
||||||
return function_body_to_update;
|
return function_body_to_update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user