()
| 224 | |
| 225 | #[test] |
| 226 | fn nullif_boolean() -> Result<()> { |
| 227 | let a = BooleanArray::from(vec![Some(true), Some(false), None]); |
| 228 | let a = ColumnarValue::Array(Arc::new(a)); |
| 229 | |
| 230 | let lit_array = ColumnarValue::Scalar(ScalarValue::Boolean(Some(false))); |
| 231 | |
| 232 | let result = nullif_func(&[a, lit_array])?; |
| 233 | let result = result.into_array(0).expect("Failed to convert to array"); |
| 234 | |
| 235 | let expected = |
| 236 | Arc::new(BooleanArray::from(vec![Some(true), None, None])) as ArrayRef; |
| 237 | |
| 238 | assert_eq!(expected.as_ref(), result.as_ref()); |
| 239 | Ok(()) |
| 240 | } |
| 241 | |
| 242 | #[test] |
| 243 | fn nullif_string() -> Result<()> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…