Closed muhlig closed 8 years ago
Ok, I took a different approach for this, but I think I should have addressed your problem. It aggressively merges everything into unions. In particular, it will merge the different unions into a single one, so you'll never end up with a union of unions.
Currently generation of union types is not correctly handled and can result in nested union types in the shape of e.g.
union<string,union<int,string,union<tinyint,binary>>
depending on the input data. This pull request fixes this issue by computing the least upper bound for the types that are part of union types.