v.18.4New Feature
has function enhancement: supports searching numeric values in Enum arrays
Thehasfunction now allows searching for a numeric value in an array ofEnumvalues Maxim Khrisanfov.
Why it matters
This feature allows users to efficiently check for the presence of numeric representations ofEnum values in arrays, improving flexibility and usability when working with Enum data types.How to use it
Use thehas function as usual with an array of Enum values and provide the numeric value to search for. For example:SELECT has(enum_array_column, 1) FROM table;