in crates/core/src/table/partition.rs [349:362]
fn test_partition_filter_try_from_all_operators() {
let schema = create_test_schema();
for (op, _) in ExprOperator::TOKEN_OP_PAIRS {
let filter = Filter {
field_name: "count".to_string(),
operator: ExprOperator::from_str(op).unwrap(),
field_value: "5".to_string(),
};
let partition_filter = SchemableFilter::try_from((filter, &schema));
let filter = partition_filter.unwrap();
assert_eq!(filter.field.name(), "count");
assert_eq!(filter.operator, ExprOperator::from_str(op).unwrap());
}
}