llama90 commented on issue #39049:
URL: https://github.com/apache/arrow/issues/39049#issuecomment-1838591714

   ### Progress Update
   
   #### What is the casting from String to Dictionary?
   
   
https://github.com/apache/arrow/blob/f7947cc21bf78d67cf5ac1bf1894b5e04de1a632/cpp/src/arrow/scalar_test.cc#L1468-L1498
   
   When printing casted value (`cast_alpha->ToString()`)
   
   * "alpha" -> [ "alpha" ][0]
   * null -> null
   * "gamma" -> [ "gamma" ][0]
   
   #### Legacy `CastTo` logic
   
   
https://github.com/apache/arrow/blob/f7947cc21bf78d67cf5ac1bf1894b5e04de1a632/cpp/src/arrow/scalar.cc#L1264-L1269
   
   


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