once again fix bugged filters

This commit is contained in:
2026-02-16 07:03:20 -05:00
parent 9518eb255e
commit 089ef39bd9

View File

@@ -702,6 +702,12 @@ evaluate_filter :: proc(item: Item, node: ^Filter_Node) -> bool {
evaluate_comparison :: proc(attr: Attribute_Value, op: Comparison_Op, val: Attribute_Value) -> bool {
cmp := compare_attribute_values(attr, val)
// -2 means types are incomparable - all comparisons return false
// (matches DynamoDB behavior: mixed-type comparisons always fail)
if cmp == -2 {
return false
}
switch op {
case .EQ: return cmp == 0
case .NE: return cmp != 0