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

Function prune_int32_col_eq_zero

datafusion/pruning/src/pruning_predicate.rs:4070–4088  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4068
4069 #[test]
4070 fn prune_int32_col_eq_zero() {
4071 let (schema, statistics) = int32_setup();
4072
4073 // Expression "i = 0"
4074 // i [-5, 5] ==> some rows could pass (must keep)
4075 // i [1, 11] ==> no rows can pass (not keep)
4076 // i [-11, -1] ==> no rows can pass (not keep)
4077 // i [NULL, NULL] ==> unknown (must keep)
4078 // i [1, NULL] ==> no rows can pass (not keep)
4079 let expected_ret = &[true, false, false, true, false];
4080
4081 prune_with_expr(
4082 // i = 0
4083 col("i").eq(lit(0)),
4084 &schema,
4085 &statistics,
4086 expected_ret,
4087 );
4088 }
4089
4090 #[test]
4091 fn prune_int32_col_is_not_distinct_from() {

Callers

nothing calls this directly

Calls 5

int32_setupFunction · 0.85
prune_with_exprFunction · 0.85
colFunction · 0.50
litFunction · 0.50
eqMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…