Skip to content

Commit c34ae6d

Browse files
Merge pull request ClickHouse#63583 from ClickHouse/ij
Fix logical error in ColumnTuple::tryInsert()
2 parents 1b43c58 + 3de1fc6 commit c34ae6d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/Columns/ColumnTuple.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ bool ColumnTuple::tryInsert(const Field & x)
164164
if (!columns[i]->tryInsert(tuple[i]))
165165
{
166166
for (size_t j = 0; j != i; ++j)
167-
columns[i]->popBack(1);
167+
columns[j]->popBack(1);
168168

169169
return false;
170170
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{1:[],'':1},{'':1,1:'',1:1}]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
select [map(1, [], '', 1), map('', 1, 1, '', toUInt128(1), 1)] settings allow_experimental_variant_type=1, use_variant_as_common_type=1

0 commit comments

Comments
 (0)