Merge pull request #46143 from ClickHouse/evillique-patch-2

Interpret `cluster_name` identifier in `s3Cluster` function as literal
This commit is contained in:
robot-clickhouse-ci-1 2023-02-08 14:06:16 +01:00 committed by GitHub
commit 99274f1db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ void TableFunctionS3Cluster::parseArguments(const ASTPtr & ast_function, Context
ASTs & args = args_func.at(0)->children;
for (auto & arg : args)
arg = evaluateConstantExpressionAsLiteral(arg, context);
arg = evaluateConstantExpressionOrIdentifierAsLiteral(arg, context);
constexpr auto fmt_string = "The signature of table function {} could be the following:\n"
" - cluster, url\n"