no more float conversion

This commit is contained in:
2026-02-16 11:35:42 -05:00
parent 96de080d10
commit 228b422393
2 changed files with 268 additions and 34 deletions

View File

@@ -1262,10 +1262,9 @@ evaluate_sort_key_condition :: proc(item: Item, skc: ^Sort_Key_Condition) -> boo
}
return false
case .BEGINS_WITH:
// BEGINS_WITH on numbers: fall through to string comparison
item_str := format_ddb_number(item_num)
cond_str := format_ddb_number(cond_num)
return strings.has_prefix(item_str, cond_str)
// begins_with is not a valid operator for Number sort keys.
// DynamoDB rejects this at validation time. Return false.
return false
}
return false
}