llama90 commented on code in PR #40017:
URL: https://github.com/apache/arrow/pull/40017#discussion_r1488593595


##########
cpp/src/arrow/compute/kernels/scalar_cast_dictionary.cc:
##########
@@ -49,7 +49,7 @@ Status CastToDictionary(KernelContext* ctx, const ExecSpan& 
batch, ExecResult* o
   // processing. This approach allows the subsequent code to uniformly handle 
STRING
   // inputs as if they were originally provided in dictionary format. Encoding 
as a
   // dictionary helps in reusing the same logic for dictionary operations.
-  if (batch[0].type()->id() == Type::STRING) {
+  if (is_base_binary_like(in_array->type->id())) {

Review Comment:
   I updated it, thank you for review!



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