Skip to content
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

Dynamic Composite Types support for DoubleType #501

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

cugni
Copy link

@cugni cugni commented Aug 1, 2012

The DoubleType wasn't one of the default types for the DynamicCompositeType.
Furthermore, the DoubleSerializer returned the BYTESTYPE instead of DOUBLETYPE as ComparatorType.
In such way the DCT stored in Cassandra a double with the alias ('b') of a ByteType with the possibility of issues for the comparator and some problems deserializing the value from the db.

@zznate
Copy link
Collaborator

zznate commented Aug 1, 2012

Thanks for the PR.Let me know on the comment above and i'll pull it in.

@cugni
Copy link
Author

cugni commented Aug 1, 2012

The revert was just because I was focus on Double.
In addiction, I think problem about the integer is more complex. To support the Int32Type would be required also a Int32Serializer which returns as Comparator an INT32TYPE. Without it the DCT serializer can't distinguish them.
I was afraid to introduce more confusion just adding it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants