TypeSystem.
add_type
Add a new LogicalType to the TypeSystem, optionally specifying the corresponding inference function and a parent type.
logical_type (LogicalType) – The new LogicalType to add.
inference_function (func, optional) – The inference function to use for inferring the given LogicalType. Defaults to None. If not specified, this LogicalType will never be inferred.
parent (LogicalType, optional) – The parent LogicalType, if applicable. Defaults to None. If not specified, this type will be considered a root type with no parent.