MCPcopy Create free account
hub / github.com/apache/datafusion / expr_schema_nullability

Function expr_schema_nullability

datafusion/expr/src/expr_schema.rs:811–827  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

colFunction · 0.70
litFunction · 0.70
eqMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…