kou commented on PR #48491: URL: https://github.com/apache/arrow/pull/48491#issuecomment-3678528297
Thanks. I understand this situation and I also consider API. How about the following API? ```h GArrowMakeStructOptions * garrow_make_struct_options_new(void); void garrow_make_struct_options_add_field(GArrowMakeStructOptions *options, const char *name, gboolean nullability, GHashTable *metadata); // no getter or const char * garrow_make_struct_options_get_field_name(GArrowMakeStructOptions *options, gsize i); gboolean garrow_make_struct_options_get_field_nullability(GArrowMakeStructOptions *options, gsize i); GHashTable * garrow_make_struct_options_get_field_metadta(GArrowMakeStructOptions *options, gsize i); ``` ```c GArrowMakeStructOptions *options = garrow_make_struct_options_new(); garrow_make_struct_options_add_field(options, name1, nullability1, metadata1); garrow_make_struct_options_add_field(options, name2, nullability2, metadata2); ... ``` -- 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]
