Skip to content

Commit a08f2ff

Browse files
committed
Change signature of median (aliased to approx_percentile_cont)
1 parent 793609e commit a08f2ff

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

datafusion/functions-aggregate/src/approx_median.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,11 @@ impl ApproxMedian {
7474
pub fn new() -> Self {
7575
Self {
7676
signature: Signature::one_of(
77-
vec![
78-
TypeSignature::Coercible(vec![Coercion::new_exact(
79-
TypeSignatureClass::Integer,
80-
)]),
81-
TypeSignature::Coercible(vec![Coercion::new_implicit(
82-
TypeSignatureClass::Float,
83-
vec![TypeSignatureClass::Decimal],
84-
NativeType::Float64,
85-
)]),
86-
],
77+
vec![TypeSignature::Coercible(vec![Coercion::new_implicit(
78+
TypeSignatureClass::Float,
79+
vec![TypeSignatureClass::Numeric],
80+
NativeType::Float64,
81+
)])],
8782
Volatility::Immutable,
8883
),
8984
}

0 commit comments

Comments
 (0)