cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dipti Mathur <diptidmat...@gmail.com>
Subject Pycassa: Error inserting supercolumn
Date Fri, 19 Nov 2010 16:49:16 GMT
Hi,

While trying to insert a new supercolumn into the keyspace, I get the
following error:

>>> tweet = TWEET.insert('4c540492-efd9-11df-a192-0022fa5e3348',{'by':
{'a':'to'}})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dipti/src/pycassa/pycassa/columnfamily.py", line 689, in
insert
    write_consistency_level=write_consistency_level)
  File "/home/dipti/src/pycassa/pycassa/columnfamily.py", line 711, in
batch_insert
    batch.send()
  File "/home/dipti/src/pycassa/pycassa/batch.py", line 67, in send
    self.client.batch_mutate(mutations, write_consistency_level)
  File "/home/dipti/src/pycassa/pycassa/connection.py", line 228, in
_client_call
    return getattr(conn.client, attr)(*args, **kwargs)
  File "/home/dipti/src/pycassa/pycassa/cassandra/Cassandra.py", line 803,
in batch_mutate
    self.send_batch_mutate(mutation_map, consistency_level)
  File "/home/dipti/src/pycassa/pycassa/cassandra/Cassandra.py", line 811,
in send_batch_mutate
    args.write(self._oprot)
  File "/home/dipti/src/pycassa/pycassa/cassandra/Cassandra.py", line 3984,
in write
    oprot.trans.write(fastbinary.encode_binary(self, (self.__class__,
self.thrift_spec)))
TypeError: expected string or Unicode object, dict found

The keyspace has been constructed as in the Twissandra example.


Regards,
Dipti

Mime
View raw message