Create a UNION data type
A map of tag name -> alternative data type
The named member alternatives of the union, in insertion order
Compare this DataType with another DataType for equality
The DataType to compare with
true if the types are equal, false otherwise
Serialize a value for storage based on this DataType
The value to serialize
The serialized value
Get the SQL string representation based on the dialect
DuckDB: native UNION(tag TYPE, ...) syntax
Other dialects: falls back to JSON or TEXT
Optionaldialect: stringGet the union's member fields
Base class for all data types