mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Remove harmful code and fix crash
This commit is contained in:
parent
4ed170a652
commit
efbc308739
@ -686,7 +686,7 @@ ASTs ActionsMatcher::doUntuple(const ASTFunction * function, ActionsMatcher::Dat
|
||||
|
||||
ASTs columns;
|
||||
size_t tid = 0;
|
||||
for (const auto & name : tuple_type->getElementNames())
|
||||
for (const auto & name [[maybe_unused]] : tuple_type->getElementNames())
|
||||
{
|
||||
auto tuple_ast = function->arguments->children[0];
|
||||
if (tid != 0)
|
||||
@ -697,11 +697,6 @@ ASTs ActionsMatcher::doUntuple(const ASTFunction * function, ActionsMatcher::Dat
|
||||
|
||||
auto func = makeASTFunction("tupleElement", tuple_ast, literal);
|
||||
|
||||
if (tuple_type->haveExplicitNames())
|
||||
func->setAlias(name);
|
||||
else
|
||||
func->setAlias(data.getUniqueName("_ut_" + name));
|
||||
|
||||
auto function_builder = FunctionFactory::instance().get(func->name, data.getContext());
|
||||
data.addFunction(function_builder, {tuple_name_type->name, literal->getColumnName(data.getContext()->getSettingsRef())}, func->getColumnName(data.getContext()->getSettingsRef()));
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
100.0000991821289 \N \N 1 1024 \N
|
Loading…
Reference in New Issue
Block a user