kou commented on code in PR #48491:
URL: https://github.com/apache/arrow/pull/48491#discussion_r2641571489


##########
c_glib/arrow-glib/compute.cpp:
##########
@@ -7498,6 +7502,151 @@ garrow_list_flatten_options_new(void)
   return GARROW_LIST_FLATTEN_OPTIONS(options);
 }
 
+enum {
+  PROP_MAKE_STRUCT_OPTIONS_FIELD_NAMES = 1,

Review Comment:
   OK. How about providing convenient APIs like this in Ruby something like the 
following?
   
   ```ruby
   module Arrow
     class MakeStructOptions
       def field_names=(names)
         raise ArgumentError, "mixing #add_field and #field_names= is 
prohibited" unless n_fields.zero?
         names.each do |name|
           add_field(name, true, nil)
         end
       end
     end
   end
   ```



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