Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Won't Fix
-
None
-
None
-
Low
Description
The CQL ResultSchema does not contain type information for the key unless the key is actually part of the CQL query. It's available in the column family schema but that's what we're trying to avoid by having a ResultSchema in the first place.
CREATE COLUMNFAMILY test (id varchar PRIMARY KEY, serial int)
INSERT INTO test (id, serial) VALUES ('test', 12345)
SELECT serial FROM test where id='test'
- The Result Schema
-
- !ruby/object:CassandraCQL::ResultSchema
names: {}
- !ruby/object:CassandraCQL::ResultSchema
-
values:
serial: Int32Type
- The row with no way to properly cast the key (though I used varchar here to make a functional example)
-
- !ruby/object:CassandraCQL::Thrift::CqlRow
columns:
- !ruby/object:CassandraCQL::Thrift::CqlRow
-
- !ruby/object:CassandraCQL::Thrift::Column
name: serial
timestamp: 1321893998457001
value: !binary |
AAAwOQ==
key: test