From 931d533152fdda9aa65f4e4d484416f7b115d2f6 Mon Sep 17 00:00:00 2001 From: Pavel Kruglov Date: Wed, 28 Apr 2021 15:51:16 +0300 Subject: [PATCH] Fix expanding FixedString 2.0 --- src/Columns/ColumnFixedString.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Columns/ColumnFixedString.cpp b/src/Columns/ColumnFixedString.cpp index 733dc8a6543..b97f3682edc 100644 --- a/src/Columns/ColumnFixedString.cpp +++ b/src/Columns/ColumnFixedString.cpp @@ -351,6 +351,7 @@ void ColumnFixedString::expand(const IColumn::Filter & mask, bool reverse) int index = mask.size() - 1; int from = size() - 1; + chars.resize(mask.size() * n); while (index >= 0) { if (mask[index] ^ reverse)