**Describe the bug**
https://clickhouse-test-reports.s3.yandex.net/22534/0733144b4a355394fecb837ba01af76a50e3fa05/fuzzer_debug/server.log

**How to reproduce**
`SELECT emptyArrayToSingle(arrayFilter(x -> (x != inf), arrayJoin([[1024], []]))) FROM system.one ANY LEFT JOIN (SELECT dummy, [257], NULL, dummy AS value) AS js2 USING (dummy) GROUP BY emptyArrayToSingle(arrayFilter(x -> (x != 1.), arrayJoin([[]])))`

Field operator[](size_t) const override { throw Exception("Cannot get value from " + getName(), ErrorCodes::NOT_IMPLEMENTED); }
    void get(size_t, Field &) const override { throw Exception("Cannot get value from " + getName(), ErrorCodes::NOT_IMPLEMENTED); }
    void insert(const Field &) override { throw Exception("Cannot insert element into " + getName(), ErrorCodes::NOT_IMPLEMENTED); }
    StringRef getDataAt(size_t) const override
    {
        return {};
    }
    void insertData(const char *, size_t) override
    {
        ++s;
    }
    StringRef serializeValueIntoArena(size_t , Arena & arena, char const *& begin) const override
    {
        return { arena.allocContinue(0, begin), 0 };
    }
    const char * deserializeAndInsertFromArena(const char * pos) override
    {
        ++s;
        return pos;
    }
    const char * skipSerializedInArena(const char * pos) const override
    {
        return pos;
    }
    void updateHashWithValue(size_t , SipHash & ) const override
    {
    }
    void updateWeakHash32(WeakHash32 & ) const override