-
Notifications
You must be signed in to change notification settings - Fork 348
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
Missing encoding for Short
and Byte
in Cassandra contexts
#1009
Comments
@mentegy what's the exact type of Decoder? |
@blueberrynotblue Encoding is driver dependent, however in general those are functions to extract value from a result row (Decoder) and prepare value to prepare row (Encoder). Example in http://getquill.io/#extending-quill-custom-encoding-raw-encoding |
@mentegy how do I write codec for Map[x,y] , I think the most confusing part is which types got support from quill and which needs codec. |
@blueberrynotblue please refer https://github.com/getquill/quill/blob/master/quill-cassandra/src/main/scala/io/getquill/context/cassandra/encoding/CassandraTypes.scala |
@blueberrynotblue one more note, quill itself does not provide any codec for cassandra. We have our own layers called |
@mentegy thx a lot!! |
@mentegy hi, CodecNotFoundException found in casssandra types of [tinyint,date] so far. In datastax library, there're these codec code, which is weird. My enviroment: |
@blueberrynotblue Could you prepare reproducible and dedicated code for me, so I can take a look? |
This would also be very useful to do for quill-jdbc since most SQL dialects have a tinyint. Also an encoding for Char would be very useful for varchar(1) columns. |
Version:
2.3.2
Module:
quill-cassandra
Expected behavior
Provide encoders/decoders form
Short
andByte
Actual behavior
Encoders/decoders are missing
Workaround
@getquill/maintainers
The text was updated successfully, but these errors were encountered: