diff --git a/datafusion/spark/src/function/math/hex.rs b/datafusion/spark/src/function/math/hex.rs index 74ec7641b38f..c110017e8388 100644 --- a/datafusion/spark/src/function/math/hex.rs +++ b/datafusion/spark/src/function/math/hex.rs @@ -74,7 +74,7 @@ impl ScalarUDFImpl for SparkHex { &self, _arg_types: &[DataType], ) -> datafusion_common::Result { - Ok(DataType::Utf8) + Ok(DataType::Utf8View) } fn invoke_with_args(