Hello there -

I'm using the python-driver to get my queried rows with a row factory
that's a dictionary. When I get back my row list, each list item is a
dictionary, but the keys are hashes. Is there any way use the column family
metadata to decrypt the dictionary keys to their original column names?
Thanks for the help.

>>import cassandra
>>from cassandra.cluster import Cluster
>>cluster = Cluster(HOSTS)
>>session = cluster.connect(POOL_NAME)
>>rows = session.execute('SELECT * FROM "orders_archive" WHERE fruits =
\'apples\' and >>veggies=\'carrots\' and drinks=\'coke\' ALLOW FILTERING')
>>row[0].keys()
[ u'6b6174616e615f7370726566', u'686f7374', u'75736572',
u'72656e6465725f61726368697665',]

What I need and expect is:
>>row[0].keys()
[ u'drinks',u'fruits', u'veggies', u'attr1',]

Any thoughts?

Thanks,
Stephen Jones
Email: sjo...@imageworks.com
Ext: 7913-2579
Current Schedule: 9a - 6p

Reply via email to