Fix logical error in ColumnTuple::tryInsert()

This commit is contained in:
Michael Kolupaev 2024-05-09 23:57:42 +00:00
parent 1b43c58489
commit 3de1fc674f
3 changed files with 3 additions and 1 deletions

View File

@ -164,7 +164,7 @@ bool ColumnTuple::tryInsert(const Field & x)
if (!columns[i]->tryInsert(tuple[i]))
{
for (size_t j = 0; j != i; ++j)
columns[i]->popBack(1);
columns[j]->popBack(1);
return false;
}

View File

@ -0,0 +1 @@
[{1:[],'':1},{'':1,1:'',1:1}]

View File

@ -0,0 +1 @@
select [map(1, [], '', 1), map('', 1, 1, '', toUInt128(1), 1)] settings allow_experimental_variant_type=1, use_variant_as_common_type=1