()
| 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() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…