From 2b148d4bb759e0767f12fdc30659b3fb4770a42f Mon Sep 17 00:00:00 2001 From: QuenKar <47681251+QuenKar@users.noreply.github.com> Date: Mon, 4 Dec 2023 17:33:28 +0800 Subject: [PATCH] chore: cr comment --- datafusion/common/src/scalar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/common/src/scalar.rs b/datafusion/common/src/scalar.rs index 552bd7597f11..815fe72431e8 100644 --- a/datafusion/common/src/scalar.rs +++ b/datafusion/common/src/scalar.rs @@ -3024,7 +3024,7 @@ impl FromStr for ScalarValue { impl From for ScalarValue { fn from(value: String) -> Self { - value.as_str().into() + ScalarValue::Utf8(Some(value)) } }