You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "llama90 (via GitHub)" <gi...@apache.org> on 2023/12/04 13:02:29 UTC
Re: [I] [C++] Add Compute Kernel for Casting from String to Dictionary [arrow]
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org