v.23.12Improvement
Function substring Now Supports Enum Types for Improved Compatibility with Third-Party Tools
The functionsubstring(aliases:substr,mid) can now be used withEnumtypes. Previously, the first function argument had to be a value of typeStringorFixedString. This improves compatibility with 3rd party tools such as Tableau via MySQL interface. #57277 (Serge Klochkov).
Why it matters
This enhancement addresses compatibility issues with third-party tools like Tableau when connecting through the MySQL interface, enabling broader and more flexible use of thesubstring function with enumerated types.How to use it
You can now apply thesubstring (or substr, mid) function directly to Enum type columns or values in your queries just as you would with String types. No additional configuration or enablement is required.