We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
From<Option<String>>' for
1 parent 40015a8 commit 6d00734Copy full SHA for 6d00734
datafusion/common/src/scalar/mod.rs
@@ -4043,7 +4043,7 @@ impl From<&str> for ScalarValue {
4043
impl From<Option<&str>> for ScalarValue {
4044
fn from(value: Option<&str>) -> Self {
4045
let value = value.map(|s| s.to_string());
4046
- ScalarValue::Utf8(value)
+ value.into()
4047
}
4048
4049
@@ -4070,7 +4070,13 @@ impl FromStr for ScalarValue {
4070
4071
impl From<String> for ScalarValue {
4072
fn from(value: String) -> Self {
4073
- ScalarValue::Utf8(Some(value))
+ Some(value).into()
4074
+ }
4075
+}
4076
+
4077
+impl From<Option<String>> for ScalarValue {
4078
+ fn from(value: Option<String>) -> Self {
4079
+ ScalarValue::Utf8(value)
4080
4081
4082
0 commit comments