Remove harmful code and fix crash

This commit is contained in:
Alexey Milovidov 2021-07-10 10:27:48 +03:00
parent 4ed170a652
commit efbc308739
2 changed files with 2 additions and 6 deletions

View File

@ -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()));

View File

@ -0,0 +1 @@
100.0000991821289 \N \N 1 1024 \N