()
| 1009 | |
| 1010 | #[test] |
| 1011 | fn test_like_nullability() { |
| 1012 | let get_schema = |nullable| { |
| 1013 | MockExprSchema::new() |
| 1014 | .with_data_type(DataType::Utf8) |
| 1015 | .with_nullable(nullable) |
| 1016 | }; |
| 1017 | |
| 1018 | let expr = col("foo").like(lit("bar")); |
| 1019 | assert!(!expr.nullable(&get_schema(false)).unwrap()); |
| 1020 | assert!(expr.nullable(&get_schema(true)).unwrap()); |
| 1021 | |
| 1022 | let expr = col("foo").like(lit(ScalarValue::Utf8(None))); |
| 1023 | assert!(expr.nullable(&get_schema(false)).unwrap()); |
| 1024 | } |
| 1025 | |
| 1026 | #[test] |
| 1027 | fn expr_schema_data_type() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…