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
importio.getquill._caseclassLoadout[+W](weapons: W) extendsEmbeddedcaseclassLoadoutSetsA[A](set1: A, set2: A) extendsEmbedded// // This works// case class Inventory(loadoutSets: LoadoutSetsA[Loadout[Int]])// This breaks with:// Query splicing failed due to error: io.getquill.quotation.QuatException: Quat at /loadoutSets is not// a product but we need to go into ./ and write renames: [(weapons,set1)]// at io.getquill.quotation.QuatException$.apply(QuatException.scala:8)// at io.getquill.quat.QuatOps$.renameQuatAtPathRecurse$1(QuatOps.scala:26)// at io.getquill.quat.QuatOps$.renameQuatAtPathRecurse$1(QuatOps.scala:28)// at io.getquill.quat.QuatOps$.renameQuatAtPath(QuatOps.scala:42)// ...typeLoadoutFoo=Loadout[Int]
caseclassInventory(loadoutSets: LoadoutSetsA[LoadoutFoo])
classMyContextextendsSqlMirrorContext(MirrorSqlDialect, Literal)
inlinedefinventory=
querySchema[Inventory](
"inventory",
_.loadoutSets.set1.weapons ->"set1",
_.loadoutSets.set2.weapons ->"set2",
)
valctx=newMyContext()
importctx.*
println(ctx.run(inventory))
Version:
4.6.0.1
Module:
quill-sql
Steps to reproduce the behavior
https://scastie.scala-lang.org/BON7uUaZTr29lgXAMNo8Rw
Workaround
Do not use type aliases in table definitions.
@getquill/maintainers
The text was updated successfully, but these errors were encountered: