()
| 178 | |
| 179 | #[test] |
| 180 | fn test_nullif_strings() { |
| 181 | let func = NullIfFunction::new(); |
| 182 | let context = FunctionContext::new( |
| 183 | vec![], |
| 184 | HashMap::new(), |
| 185 | vec![ |
| 186 | Value::String("hello".to_string()), |
| 187 | Value::String("hello".to_string()), |
| 188 | ], |
| 189 | ); |
| 190 | |
| 191 | let result = func.execute(&context).unwrap(); |
| 192 | assert!(result.is_null()); |
| 193 | } |
| 194 | |
| 195 | #[test] |
| 196 | fn test_coalesce_first_non_null() { |