object AggregateLibrary {
val PercentileDisc = new SqlFunction("percentile_disc")
}
def percentileDisc(f: Double) = agg.OrderedAggFuncBuilder(AggLibrary.PercentileDisc, List(LiteralNode(f)))
...
percentileDisc(0.5d).filter(t.y < 130d).within(t.x desc) <=> percentile_disc(0.5) within group ( order by "x" desc) filter ( where "y" < 130.0)
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
pg aggregate function support, usage: