mfwgenerics / koala

SQL generation for Kotlin
https://mfwgenerics.github.io/koala/
MIT License
13 stars 4 forks source link

Ambiguous as_ for CTEs #35

Closed mfwgenerics closed 1 year ago

mfwgenerics commented 1 year ago

Calling as_ on Cte uses Relation.as_ and throws up a type error when used in CTE clauses. The Cte.as_ extension method needs to be imported in order to resolve this.

Solution: Perhaps a specialized Cte.as_ that can function as WithOperand or Aliased depending on context