Re: Batch mutate doesn't work

2010-05-06 Thread Erik Bogghed
Try this. You need to use the dict module. MutationMap = dict:store(Key, dict:store("KeyValue", [ #mutation {column_or_supercolumn = #columnOrSuperColumn {column =

Re: Batch mutate doesn't work

2010-04-30 Thread Anthony Molinaro
On Fri, Apr 30, 2010 at 03:58:09PM +0200, Zubair Quraishi wrote: > % > % set second property ( fails! - why? ) > % > MutationMap = > { >Key, >{ > <<"KeyValue">>, > [ >#mutation{ > column_or_supercolumn = #column{ name = "property" , value = > "value" , times

Re: Batch mutate doesn't work

2010-04-30 Thread Jonathan Ellis
like I told you on the other list, erlang or the erlang thrift compiler is not exposing the error the cassandra server is sending you. "bad_return_value" is not it. Unless someone with actual erlang experience chimes in here, I would suggest trying with Python first, at least that will show you t

Batch mutate doesn't work

2010-04-30 Thread Zubair Quraishi
I have the following code in Erlang to set a value and then add a property. The first set works but the mutate fails. Can anyone enlighten me? Thanks {ok, C} = thrift_client:start_link("127.0.0.1",9160, cassandra_thrift), Key = "Key1", % % set first property % thrift_client:call( C,