Skip to content

Commit

Permalink
chore: fix regression in first_value coercsion
Browse files Browse the repository at this point in the history
  • Loading branch information
appletreeisyellow committed Jun 3, 2024
1 parent 156a525 commit 2e17a88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion/functions-aggregate/src/first_last.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ impl FirstValue {
vec![
// TODO: we can introduce more strict signature that only numeric of array types are allowed
TypeSignature::ArraySignature(ArrayFunctionSignature::Array),
TypeSignature::Uniform(1, NUMERICS.to_vec()),
TypeSignature::Numeric(1),
TypeSignature::Uniform(1, vec![DataType::Utf8]),
],
Volatility::Immutable,
),
Expand Down

0 comments on commit 2e17a88

Please sign in to comment.