You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.update(
p => p.abc -> lift(p1.abc.getOrElse(p.abc))
)
Then I'm getting below error (which I posted on stack over flow as well) during compileScala task
Can't find Encoder for type 'java.io.Serializable'. Note that Encoders are invariant. For example, use lift(Option(1)) instead of lift(Some(1)) since the available encoder is for Option, not Some. As an alternative for types that don't provide a method like Option.apply, you can use type widening: lift(MyEnum.SomeValue: MyEnum.Value) Error occurred in an application involving default arguments.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am using quill library to update the table with Option[String] field like the question posted by someone here:
https://stackoverflow.com/questions/71252682/how-to-perform-an-update-with-optional-columns-using-scala-quill/74564006#74564006
But when I'm trying to do
.update(
p => p.abc -> lift(p1.abc.getOrElse(p.abc))
)
Then I'm getting below error (which I posted on stack over flow as well) during compileScala task
Can't find Encoder for type 'java.io.Serializable'. Note that Encoders are invariant. For example, use lift(Option(1)) instead of lift(Some(1)) since the available encoder is for Option, not Some. As an alternative for types that don't provide a method like Option.apply, you can use type widening: lift(MyEnum.SomeValue: MyEnum.Value) Error occurred in an application involving default arguments.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions