Hisoka-X commented on PR #41531:
URL: https://github.com/apache/spark/pull/41531#issuecomment-1585892410

   > I'm not sure it's worth it. Users can base64-encode before displaying if 
desired; neither is particularly meaningful to a human, so, not sure it's 
generally worth selecting a binary col for display anyway
   
   I think the point is that result can't be nothing, eg:
   ```scala
   spark-sql (default)> select 'fdsaf' as a, to_binary('1', 'hex') as b , 'fda' 
as c ;
   fdsaf           fda
   Time taken: 0.062 seconds, Fetched 1 row(s)
   ```
   User can use this config to avoid situation like this, in whole session, not 
change binary row one by one. I think that's one reason of why `show` method 
will convert binary to hex as default.
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to