Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Feature request - provide a method to determine the column types in a dynamic column family #245

mohammedguller opened this Issue Mar 21, 2013 · 6 comments


None yet
3 participants

Hi - It would be great if a method could be added to the ColumnList interface that would allow one to determine the type of a column (useful when reading data from a dynamic column family). There is already a method called getColumnNames(), which allows one to determine dynamically created columns. However, in order to read the actual values, one has to also know the data types. That is where a method that looks something like this would help:

getColumnType(C columnName)



elandau commented Mar 22, 2013

Are you using mostly CQL or thrift? For CQL this information is actually returned in the response and can be extracted. I will likely add this functionality anyway since I'll need it for a new cassandra admin tool that I'm working on. If using thrift this would require an additional call to cassandra in order to get the column metadata. The response could be cached and stored on the first call to getColumnType but we'll need to put a TTL so that any changes to the column metadata would be picked up by the clients.

I am using only CQL. Glad to hear that you were already thinking of adding this functionality. I think that a lot of people will find this functionality useful.

Any idea when you might be able to start implementing this functionality?



elandau commented Mar 22, 2013

I'll try to get this in by the end of next week.

Fantastic! Thank you very much.

Hi - I was wondering if you got chance to work on this new feature? Thanks.

pokstar commented Jun 24, 2013


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment