**Describe the unexpected behaviour**
Expected create view from any "select" query, but it doesn't work.
But select-query is correct and working
version 20.4.5.36
**How to reproduce**

CREATE VIEW tempView AS
WITH(SELECT groupArray(a) FROM (SELECT [1, 2] AS a)) AS aaa
SELECT aaa


**Error message and/or stacktrace**
Code: 53, e.displayText() = DB::Exception: CAST AS Array can only be performed between same-dimensional array types or from String

if (from_is_unsigned == to_is_unsigned)
                return {true, true, true};
            if (!to_is_unsigned)
                return {true, true, true};
            
            if (left_in_first_half == right_in_first_half)
                return {true};
            return {};
        }
        
        if (size_of_from > size_of_to)
        {
            
            if (left.isNull() || right.isNull())
                return {};
            
            if (divideByRangeOfType(left.get<UInt64>()) != divideByRangeOfType(right.get<UInt64>()))
                return {};
            if (to_is_unsigned)
                return {true};
            else
                
                return {(T(left.get<UInt64>()) >= 0) == (T(right.get<UInt64>()) >= 0)};
        }
        __builtin_unreachable();
    }
};
struct ToDateMonotonicity
{
    static bool has() { return true; }