andishgar opened a new issue, #50080: URL: https://github.com/apache/arrow/issues/50080
### Describe the enhancement requested In Arrow's `cpp/src/arrow/compute/kernels/scalar_cast_string.cc`, there are several cast kernels registered for cases where the input and output types are the same, for example: https://github.com/apache/arrow/blob/73742e82ed771cb7df40789882e220118045123b/cpp/src/arrow/compute/kernels/scalar_cast_string.cc#L643-L658 https://github.com/apache/arrow/blob/73742e82ed771cb7df40789882e220118045123b/cpp/src/arrow/compute/kernels/scalar_cast_string.cc#L472-L487 https://github.com/apache/arrow/blob/73742e82ed771cb7df40789882e220118045123b/cpp/src/arrow/compute/kernels/scalar_cast_string.cc#L772-L780 However, casts between identical types appear to be handled earlier in cast.cc: https://github.com/apache/arrow/blob/73742e82ed771cb7df40789882e220118045123b/cpp/src/arrow/compute/cast.cc#L101 As a result, it seems these kernels may never be invoked. ### Component(s) C++ -- 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]
