From 2e17a88f99fd456d9ed060f3ec32b3a7b2ee4bb9 Mon Sep 17 00:00:00 2001 From: Chunchun <14298407+appletreeisyellow@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:55:14 -0500 Subject: [PATCH] chore: fix regression in `first_value` coercsion --- datafusion/functions-aggregate/src/first_last.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datafusion/functions-aggregate/src/first_last.rs b/datafusion/functions-aggregate/src/first_last.rs index 6fcb655ae432..6d5629f3509b 100644 --- a/datafusion/functions-aggregate/src/first_last.rs +++ b/datafusion/functions-aggregate/src/first_last.rs @@ -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, ),