Skip to content

[Amazon Keyspaces] Different types of operations on same column not supported

0

We are using Amazon Keyspaces with Django & Django Cassandra Engine. In one of our table we have a column defined as a list (called 'date_list')

We do insert, update, delete without any issue. However sometimes we get this issue and we didn't find help on this:

Error from server: code=2200 [Invalid query] message="Different types of operations (Prepend, Addition) on same column (date_list) is not supported"

How to solve this issue ?

asked 3 years ago362 views

1 Answer
0

This is a CQL-level restriction (not Keyspaces-specific — Apache Cassandra also enforces this). The fix is always to split mixed collection mutations into separate statements. The Django Cassandra Engine layer is what combines them into one , work around it at the query level.

References:

AWS
EXPERT

answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.