v.24.3Improvement
Function substring gains new alias byteSlice
Functionsubstringnow has a new aliasbyteSlice. #60494 (Robert Schulze).
Why it matters
To provide an alternative, more descriptive name for thesubstring function that emphasizes byte-level slicing, making the function usage clearer and potentially improving code readability.How to use it
Use thebyteSlice function in the same way as substring to extract substrings at the byte level from strings. For example:SELECT byteSlice('example', 2, 3);This is functionally equivalent to:
SELECT substring('example', 2, 3);