use new number type to be compatible with dynamo

This commit is contained in:
2026-02-16 08:45:30 -05:00
parent 089ef39bd9
commit f8b0b1c3ae
7 changed files with 680 additions and 45 deletions

View File

@@ -60,8 +60,9 @@ key_condition_get_pk_bytes :: proc(kc: ^Key_Condition) -> ([]byte, bool) {
#partial switch v in kc.pk_value {
case String:
return transmute([]byte)string(v), true
case Number:
return transmute([]byte)string(v), true
case DDB_Number:
// Use canonical encoding for numbers in keys!
return encode_ddb_number_for_sort(v), true
case Binary:
return transmute([]byte)string(v), true
}