-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for custom CQL types #364
Comments
CQL protocol allows sending custom types identified by their string representation. One of the cases in which the trick is used is when Cassandra returns duration columns to a CQLv4 client, which is not supposed to know this type. WIP: the actual implementation will be done once #363 is merged. Refs #364
CQL protocol allows sending custom types identified by their string representation. One of the cases in which the trick is used is when Cassandra returns duration columns to a CQLv4 client, which is not supposed to know this type. WIP: the actual implementation will be done once #363 is merged. Refs #364
In #363, we gained a (hardcoded) support for deserializing |
Should we close this issue as not planned?
|
Yes, given your arguments @avelanarius I think it makes sense to close. Serializing/deserializing such types should be possible if somebody provides custom implementations of the relevant traits (for deserialization, it will require #462). As they are deprecated, we don't need to care about them in @Lorak-mmk what do you think? |
I think (but am not sure) that it is currently possible to serialize such values (by manually implementing One thing to note is that it won't be possible to implement this after 1.0 (without releasing 2.0) unless we mark |
I'm convinced fully, |
CQL v4 spec mentions that aside from native types, it's also possible to return a custom type. Excerpt from the spec: https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec
We currently don't support any custom types, but given the problem described in #363 where Cassandra returns duration as a custom type, we should add a mechanism for implementing such support.
The text was updated successfully, but these errors were encountered: