wuchong edited a comment on pull request #18221:
URL: https://github.com/apache/flink/pull/18221#issuecomment-1004129907


   I have the similar concern with @twalthr . IIRC, currently, the casting 
behavior between BYTES and STRING is using base64 encoding. I agree with that 
there should be more encoding methods should be supported, however, it's hard 
to tunning the encoding methods in the CAST syntax, and this change looks like 
a break change? 
   
   What do you think about introducing a new built-in function for this kind of 
conversion? Just like trino provides a set of conversion funtions: `from_hex`, 
`to_hex`, `from_big_endian_32`, `to_big_endian_32`, `from_ieee754_32`, 
`to_ieee754_32` ... 
   
   https://trino.io/docs/current/functions/binary.html#hex-encoding-functions
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to