I've been converting a few scripts from CQL to Pycassa, and have hit a brick wall when it comes to inserting rows.
I first tried inserting with an IntegerType comparator, and now a UUIDType, and I can't seem to get either to work.
Versions:
Python 2.7.3
Cassandra 1.2.3-SNAPSHOT
>>> pycassa.__version__
'1.8.0'
This is a minimal example of trying to insert a new UUID row:
https://gist.github.com/pilate/2b0b8751bbcf1563c913Passing a UUID as the key name gives me the error:
A str or unicode value was expected, but UUID was received instead (5c91fb8c-7392-416a-a698-7e96a39bffa2)
If I wrap that UUID in a str() call, it tells me:
Argument for a v1 UUID column name or value was neither a UUID, a datetime, or a number
Changing it to IntegerType, and trying to pass int()'s gives me something similar:
unsupported operand type(s) for &: 'int' and 'str'
I feel like I have to be doing something extremely wrong here; Any suggestions?