diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index 41d4c7d38c..9ee62ab0b4 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -10647,6 +10647,46 @@ public class DSL { return new Function("ntile", SQLDataType.INTEGER, inline(number)); } + /** + * The + * percentile_cont([number]) within group (order by [column]) + * function. + */ + @Support({ POSTGRES_9_4 }) + public static OrderedAggregateFunction percentile_cont(double number) { + return new Function("percentile_cont", SQLDataType.DOUBLE, val(number)); + } + + /** + * The + * percentile_cont([number]) within group (order by [column]) + * function. + */ + @Support({ POSTGRES_9_4 }) + public static OrderedAggregateFunction percentile_cont(BigDecimal number) { + return new Function("percentile_cont", SQLDataType.NUMERIC, val(number, BigDecimal.class)); + } + + /** + * The + * percentile_disc([number]) within group (order by [column]) + * function. + */ + @Support({ POSTGRES_9_4 }) + public static OrderedAggregateFunction percentile_disc(Double number) { + return new Function("percentile_disc", SQLDataType.DOUBLE, val(number, Double.class)); + } + + /** + * The + * percentile_disc([number]) within group (order by [column]) + * function. + */ + @Support({ POSTGRES_9_4 }) + public static OrderedAggregateFunction percentile_disc(BigDecimal number) { + return new Function("percentile_disc", SQLDataType.NUMERIC, val(number, BigDecimal.class)); + } + /** * The first_value(field) over ([analytic clause]) function. *