* garrow_array_equal_options: * @array: A #GArrowArray. * @other_array: A #GArrowArray to be compared. * @options: (nullable): A #GArrowEqualOptions to custom how to compare. * * Returns: %TRUE if both of them have the same data, %FALSE * otherwise. * * Since: 5.0.0 */
| 945 | * Since: 5.0.0 |
| 946 | */ |
| 947 | gboolean |
| 948 | garrow_array_equal_options(GArrowArray *array, |
| 949 | GArrowArray *other_array, |
| 950 | GArrowEqualOptions *options) |
| 951 | { |
| 952 | const auto arrow_array = garrow_array_get_raw(array); |
| 953 | const auto arrow_other_array = garrow_array_get_raw(other_array); |
| 954 | if (options) { |
| 955 | auto is_approx = garrow_equal_options_is_approx(options); |
| 956 | const auto arrow_options = garrow_equal_options_get_raw(options); |
| 957 | if (is_approx) { |
| 958 | return arrow_array->ApproxEquals(arrow_other_array, *arrow_options); |
| 959 | } else { |
| 960 | return arrow_array->Equals(arrow_other_array, *arrow_options); |
| 961 | } |
| 962 | } else { |
| 963 | return arrow_array->Equals(arrow_other_array); |
| 964 | } |
| 965 | } |
| 966 | |
| 967 | /** |
| 968 | * garrow_array_equal_approx: |
no test coverage detected