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
compile success with SELECT p1.age, MAX(p2.age) FROM person p1 join person p2 on p1.name = p2.name GROUP BY p1.age.
Actual behavior
Query splicing failed due to error: scala.MatchError: querySchema("Person").join(querySchema("Person")).on((p1, p2) => p1.name == p2.name).groupByMap(r => r._1.age)(r => (r._1.age, r._2.age.max)) (of classio.getquill.ast.GroupByMap)
at io.getquill.norm.capture.AvoidAliasConflict.apply$$anonfun$1(AvoidAliasConflict.scala:203)
at io.getquill.util.Interpolator$Traceable.andReturnIf(Interpolator.scala:193)
at io.getquill.norm.capture.AvoidAliasConflict.apply(AvoidAliasConflict.scala:205)
at io.getquill.ast.StatefulTransformer.apply(StatefulTransformer.scala:9)
at io.getquill.ast.StatefulTransformer.apply$(StatefulTransformer.scala:3)
at io.getquill.norm.capture.AvoidAliasConflict.apply(AvoidAliasConflict.scala:43)
at io.getquill.ast.StatefulTransformer.apply(StatefulTransformer.scala:153)
at io.getquill.ast.StatefulTransformer.apply$(StatefulTransformer.scala:3)
at io.getquill.norm.capture.AvoidAliasConflict.recurseAndApply$$anonfun$1(AvoidAliasConflict.scala:81)
at io.getquill.util.Interpolator$Traceable.andReturnIf(Interpolator.scala:193)
at io.getquill.norm.capture.AvoidAliasConflict.recurseAndApply(AvoidAliasConflict.scala:92)
at io.getquill.norm.capture.AvoidAliasConflict.apply$$anonfun$1(AvoidAliasConflict.scala:145)
at io.getquill.util.Interpolator$Traceable.andReturnIf(Interpolator.scala:193)
at io.getquill.norm.capture.AvoidAliasConflict.apply(AvoidAliasConflict.scala:205)
at io.getquill.norm.capture.AvoidAliasConflictApply.apply(AvoidAliasConflict.scala:287)
at io.getquill.norm.Normalize.apply$$anonfun$1(Normalize.scala:37)
at io.getquill.util.Interpolator$Traceable.andReturn(Interpolator.scala:172)
at io.getquill.norm.Normalize.apply(Normalize.scala:37)
at io.getquill.ast.StatelessTransformer.apply(StatelessTransformer.scala:9)
at io.getquill.ast.StatelessTransformer.apply$(StatelessTransformer.scala:3)
at io.getquill.norm.Normalize.apply(Normalize.scala:30)
at io.getquill.context.sql.norm.SqlNormalize.$init$$$anonfun$5(SqlNormalize.scala:40)
at scala.Function1.$anonfun$andThen$1(Function1.scala:87)
Version: 4.6.0.1 and master branch (sha1: 16c5404)
Module:
quill-sql
Scala: 3.2.2
Expected behavior
compile success with
SELECT p1.age, MAX(p2.age) FROM person p1 join person p2 on p1.name = p2.name GROUP BY p1.age
.Actual behavior
Steps to reproduce the behavior
https://scastie.scala-lang.org/DdIgtlwTSzSHJsUyQrGEOg
Workaround
@getquill/maintainers
The text was updated successfully, but these errors were encountered: