andishgar commented on issue #50080:
URL: https://github.com/apache/arrow/issues/50080#issuecomment-4608015260

   @pitrou, regarding the comment above:
   
   > 2. `binary_view` and `utf8_view` are different types.
   
   Considering that the generic function below produces four kernels:
   
   
https://github.com/apache/arrow/blob/73742e82ed771cb7df40789882e220118045123b/cpp/src/arrow/compute/kernels/scalar_cast_string.cc#L472-L487
   
   1. `utf8_view` → `binary_view`
   2. `utf8_view` → `utf8_view`
   3. `binary_view` → `binary_view`
   4. `binary_view` → `utf8_view`
   
   However, because of the code below, kernels 2 and 3 never execute:
   
   
https://github.com/apache/arrow/blob/73742e82ed771cb7df40789882e220118045123b/cpp/src/arrow/compute/cast.cc#L101-L106
   


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