SQL user defined functions fix alias

This commit is contained in:
Maksim Kita 2021-10-13 00:16:01 +03:00
parent c368b20dce
commit cd08a078d1

View File

@ -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;
} }