| 33 | end |
| 34 | |
| 35 | def test_is_null_function |
| 36 | args = [ |
| 37 | Arrow::ArrayDatum.new(build_float_array([1.0, Float::NAN, 2.0, nil, 4.0])), |
| 38 | ] |
| 39 | is_null_function = Arrow::Function.find("is_null") |
| 40 | @options.nan_is_null = true |
| 41 | result = is_null_function.execute(args, @options).value |
| 42 | assert_equal(build_boolean_array([false, true, false, true, false]), result) |
| 43 | end |
| 44 | end |