**Describe the bug**
1. https://clickhouse-test-reports.s3.yandex.net/19736/68c542aec681bbf841f45fc879c1e97052449555/fuzzer_ubsan/server.log
2. https://clickhouse-test-reports.s3.yandex.net/19736/68c542aec681bbf841f45fc879c1e97052449555/fuzzer_asan/server.log
3. https://clickhouse-test-reports.s3.yandex.net/19736/68c542aec681bbf841f45fc879c1e97052449555/fuzzer_msan/server.log
4. https://clickhouse-test-reports.s3.yandex.net/19736/342326978f2bb2fe5c108c2801cdbabaf407fa68/fuzzer_debug/server.log
5. https://clickhouse-test-reports.s3.yandex.net/19736/342326978f2bb2fe5c108c2801cdbabaf407fa68/fuzzer_tsan/server.log

CC @zhang2014 
invert_left_infinities = true;
            left_point[i].update(new_range->left);
        }
        else
        {
            if (invert_left_infinities)
                left_point[i].update(ValueWithInfinity::PLUS_INFINITY);
            else
                left_point[i].update(ValueWithInfinity::MINUS_INFINITY);
        }
        if (new_range->right_bounded)
        {
            if (!new_range->right_included)
                invert_right_infinities = true;
            right_point[i].update(new_range->right);
        }
        else
        {
            if (invert_right_infinities)
                right_point[i].update(ValueWithInfinity::MINUS_INFINITY);
            else
                right_point[i].update(ValueWithInfinity::PLUS_INFINITY);
        }
    }
    auto compare = [](const IColumn & lhs, const ValueWithInfinity & rhs, size_t row)
    {
        auto type = rhs.getType();
        
        if (type != ValueWithInfinity::NORMAL)
            return -static_cast<int>(type);