| 809 | |
| 810 | #[test] |
| 811 | fn expr_schema_nullability() { |
| 812 | let expr = col("foo").eq(lit(1)); |
| 813 | assert!(!expr.nullable(&MockExprSchema::new()).unwrap()); |
| 814 | assert!( |
| 815 | expr.nullable(&MockExprSchema::new().with_nullable(true)) |
| 816 | .unwrap() |
| 817 | ); |
| 818 | |
| 819 | test_is_expr_nullable!(is_null); |
| 820 | test_is_expr_nullable!(is_not_null); |
| 821 | test_is_expr_nullable!(is_true); |
| 822 | test_is_expr_nullable!(is_not_true); |
| 823 | test_is_expr_nullable!(is_false); |
| 824 | test_is_expr_nullable!(is_not_false); |
| 825 | test_is_expr_nullable!(is_unknown); |
| 826 | test_is_expr_nullable!(is_not_unknown); |
| 827 | } |
| 828 | |
| 829 | #[test] |
| 830 | fn test_between_nullability() { |