schemasafe / troy

Type-safe and Schema-safe Scala wrapper for Cassandra driver
Apache License 2.0
151 stars 14 forks source link

Regression: Codecs derivation for Option of Primitives fails #99

Closed tabdulradi closed 7 years ago

tabdulradi commented 7 years ago

Since code under examples was not part of the tests, we got this regression. Needs to be exposed first as a testcase.

[error] /Users/radian/Workspace/tabdulradi/troy/examples/demo/src/main/scala/demo99/Main.scala:29: type arguments
[Int,troy.driver.CassandraDataType.VarInt] do not conform to method optional's type parameter bounds [S <: AnyRef,
C <: troy.driver.CassandraDataType]
[error]   val get = withSchema { (authorId: String, postId: UUID) =>
tabdulradi commented 7 years ago

Note: There is a plan to get rid of the macro-based codec derivation. Might fix this bug as well.

tabdulradi commented 7 years ago

https://github.com/cassandra-scala/troy/pull/102