* garrow_array_is_in: * @left: A left hand side #GArrowArray. * @right: A right hand side #GArrowArray. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): The #GArrowBooleanArray * showing whether each element in the left array is contained * in right array. * * Since: 0.15.0 */
| 5664 | * Since: 0.15.0 |
| 5665 | */ |
| 5666 | GArrowBooleanArray * |
| 5667 | garrow_array_is_in(GArrowArray *left, GArrowArray *right, GError **error) |
| 5668 | { |
| 5669 | auto arrow_left = garrow_array_get_raw(left); |
| 5670 | auto arrow_right = garrow_array_get_raw(right); |
| 5671 | auto arrow_is_in_datum = arrow::compute::IsIn(arrow_left, arrow_right); |
| 5672 | if (garrow::check(error, arrow_is_in_datum, "[array][is-in]")) { |
| 5673 | auto arrow_is_in_array = (*arrow_is_in_datum).make_array(); |
| 5674 | return GARROW_BOOLEAN_ARRAY(garrow_array_new_raw(&arrow_is_in_array)); |
| 5675 | } else { |
| 5676 | return NULL; |
| 5677 | } |
| 5678 | } |
| 5679 | |
| 5680 | /** |
| 5681 | * garrow_array_is_in_chunked_array: |
nothing calls this directly
no test coverage detected