There is no check for presence of keys in expected field of put_item.
Bug #1407648 reported by
Ajaya Agrawal
This bug report is a duplicate of:
Bug #1415441: Range key in expected field of put_item throws error..
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MagnetoDB |
Triaged
|
High
|
Unassigned |
Bug Description
Log
======
code=2200 [Invalid query] message="PRIMARY KEY column 'u_Author' cannot have IF conditions"
======
The query goes to cassandra and fails. We could validate that before that reaches cassandra.
Changed in magnetodb: | |
status: | Incomplete → Triaged |
importance: | Undecided → Medium |
tags: | added: data-api validation |
Changed in magnetodb: | |
milestone: | none → kilo-2 |
Changed in magnetodb: | |
importance: | Medium → High |
To post a comment you must log in.
ajayya, could you please provide the table schema and query.
Primary key could be in expected in case of checking item existing
http:// magnetodb. readthedocs. org/en/ latest/ put_item. html#conditions -support
~ isviridov