Description
There is a possible bug in validation of union queries involving complex data types. The following query reproduces it:
SELECT array(1, 2) a UNION ALL SELECT NULL;
Error: Error while compiling statement: FAILED: SemanticException Schema of both sides of union should match: Column a is of type array<int> on first table and type void on second table. Cannot tell the position of null AST. (state=42000,code=40000)