You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/01/03 14:27:13 UTC

[GitHub] [flink] wuchong commented on pull request #18221: [FLINK-24803][table-planner] Fix cast BINARY/VARBINARY to STRING

wuchong commented 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 introduce 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` ... 
   
   v


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org