Skip to content

Commit

Permalink
glib2
Browse files Browse the repository at this point in the history
  • Loading branch information
R-JunmingChen committed Aug 20, 2023
1 parent 5d7602b commit f6c4159
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions c_glib/arrow-glib/compute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3402,13 +3402,14 @@ garrow_set_lookup_options_class_init(GArrowSetLookupOptionsClass *klass)
*
* Since: 6.0.0
*/
spec = g_param_spec_boolean("skip-nulls",
"Skip NULLs",
"Whether NULLs are skipped or not",
options.skip_nulls,
static_cast<GParamFlags>(G_PARAM_READWRITE));
g_object_class_install_property(gobject_class,
PROP_SET_LOOKUP_OPTIONS_SKIP_NULLS,
bool skip_nulls = false;
if (options.skip_nulls.has_value() && options.skip_nulls.value()) {
skip_nulls = true;
}
spec =
g_param_spec_boolean("skip-nulls", "Skip NULLs", "Whether NULLs are skipped or not",
skip_nulls, static_cast<GParamFlags>(G_PARAM_READWRITE));
g_object_class_install_property(gobject_class, PROP_SET_LOOKUP_OPTIONS_SKIP_NULLS,
spec);
}

Expand Down Expand Up @@ -6462,9 +6463,13 @@ garrow_set_lookup_options_new_raw(
arrow_copied_options.get());
auto value_set =
garrow_datum_new_raw(&(arrow_copied_set_lookup_options->value_set));
bool skip_nulls = false;
if (arrow_options->skip_nulls.has_value() && arrow_options->skip_nulls.value()) {
skip_nulls = true;
}
auto options = g_object_new(GARROW_TYPE_SET_LOOKUP_OPTIONS,
"value-set", value_set,
"skip-nulls", arrow_options->skip_nulls,
"skip-nulls", skip_nulls,
NULL);
return GARROW_SET_LOOKUP_OPTIONS(options);
}
Expand Down

0 comments on commit f6c4159

Please sign in to comment.