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
Currently for example SQLExpressions.percentileCont(...) only supports .withinGroup().orderBy(...), but not .over().partitionBy(..)
How the new feature should work
It would be awesome to be able to write SQLExpressions.percentileCont(0.25).withinGroup().orderBy("value").over().partitionBy("series") to get PERCENTILE_CONT(0.25) WITHIN GROUP (ORDER BY value) OVER (PARTITION BY series)
The text was updated successfully, but these errors were encountered:
As there is already support for this with SQLExpressions.count() (e.g. SQLExpressions.count().over().partitionBy((Expression<?>) null)) you could try to do something like this to achieve your percentile count with OVER ()
new WindowFunction<>(SQLExpressions.percentileCont((Expression<Number>) null))
.partitionBy((Expression<?>) null);
The nulls of course have to be replaced with your proper Expressions. :)
Why the new feature should be added
Currently for example
SQLExpressions.percentileCont(...)
only supports.withinGroup().orderBy(...)
, but not.over().partitionBy(..)
How the new feature should work
It would be awesome to be able to write
SQLExpressions.percentileCont(0.25).withinGroup().orderBy("value").over().partitionBy("series")
to getPERCENTILE_CONT(0.25) WITHIN GROUP (ORDER BY value) OVER (PARTITION BY series)
The text was updated successfully, but these errors were encountered: