Fixed error with FixedString filtering [#CLICKHOUSE-2898].

This commit is contained in:
Alexey Milovidov 2017-03-21 21:37:35 +03:00
parent 349c96ec8f
commit 9d5ea2163c
3 changed files with 3 additions and 0 deletions

View File

@ -185,6 +185,7 @@ ColumnPtr ColumnFixedString::filter(const IColumn::Filter & filt, ssize_t result
if (0 == mask)
{
/// Nothing is inserted.
data_pos += chars_per_simd_elements;
}
else if (0xFFFF == mask)
{

View File

@ -0,0 +1 @@
Hello

View File

@ -0,0 +1 @@
SELECT DISTINCT x FROM (SELECT toFixedString(number < 20 ? '' : 'Hello', 5) AS x FROM system.numbers LIMIT 50) WHERE x != '\0\0\0\0\0';