v.24.1New Feature
Support for Enum Data Types in Transform Function
Support forEnumdata types in functiontransform. This closes #58241. #58360 (Alexey Milovidov).
Why it matters
This feature enables users to utilizeEnum types directly within the transform function, improving type compatibility and making it easier to map Enum values to desired outputs without explicit type conversion.How to use it
Use thetransform function with columns of Enum data type just like any other supported data type. For example:SELECT transform(enum_column, ['EnumValue1', 'EnumValue2'], ['Result1', 'Result2']) FROM table