pitrou commented on code in PR #14495:
URL: https://github.com/apache/arrow/pull/14495#discussion_r1009559794


##########
cpp/src/arrow/compute/kernels/scalar_nested.cc:
##########
@@ -252,6 +266,29 @@ struct StructFieldFunctor {
     return Status::OK();
   }
 
+  static Result<std::shared_ptr<Array>> ApplyFieldRef(KernelContext* ctx,
+                                                      const FieldRef& 
field_ref,
+                                                      std::shared_ptr<Array> 
current) {
+    if (current->type_id() != Type::STRUCT) {

Review Comment:
   Hmm, why wouldn't this function work on unions?



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