[#2498] Add support for SQL Standard PERCENTILE_CONT() and PERCENTILE_DISC() inverse distribution functions
This commit is contained in:
parent
60744d89d9
commit
c04ce0e69e
@ -10647,6 +10647,46 @@ public class DSL {
|
||||
return new Function<Integer>("ntile", SQLDataType.INTEGER, inline(number));
|
||||
}
|
||||
|
||||
/**
|
||||
* The
|
||||
* <code>percentile_cont([number]) within group (order by [column])</code>
|
||||
* function.
|
||||
*/
|
||||
@Support({ POSTGRES_9_4 })
|
||||
public static OrderedAggregateFunction<Double> percentile_cont(double number) {
|
||||
return new Function<Double>("percentile_cont", SQLDataType.DOUBLE, val(number));
|
||||
}
|
||||
|
||||
/**
|
||||
* The
|
||||
* <code>percentile_cont([number]) within group (order by [column])</code>
|
||||
* function.
|
||||
*/
|
||||
@Support({ POSTGRES_9_4 })
|
||||
public static OrderedAggregateFunction<BigDecimal> percentile_cont(BigDecimal number) {
|
||||
return new Function<BigDecimal>("percentile_cont", SQLDataType.NUMERIC, val(number, BigDecimal.class));
|
||||
}
|
||||
|
||||
/**
|
||||
* The
|
||||
* <code>percentile_disc([number]) within group (order by [column])</code>
|
||||
* function.
|
||||
*/
|
||||
@Support({ POSTGRES_9_4 })
|
||||
public static OrderedAggregateFunction<Double> percentile_disc(Double number) {
|
||||
return new Function<Double>("percentile_disc", SQLDataType.DOUBLE, val(number, Double.class));
|
||||
}
|
||||
|
||||
/**
|
||||
* The
|
||||
* <code>percentile_disc([number]) within group (order by [column])</code>
|
||||
* function.
|
||||
*/
|
||||
@Support({ POSTGRES_9_4 })
|
||||
public static OrderedAggregateFunction<BigDecimal> percentile_disc(BigDecimal number) {
|
||||
return new Function<BigDecimal>("percentile_disc", SQLDataType.NUMERIC, val(number, BigDecimal.class));
|
||||
}
|
||||
|
||||
/**
|
||||
* The <code>first_value(field) over ([analytic clause])</code> function.
|
||||
* <p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user