fix: wrong error msg in pipeline (#5937)

This commit is contained in:
shuiyisong
2025-04-21 12:05:46 +08:00
committed by GitHub
parent ad1b77ab04
commit 9df493988b

View File

@@ -436,7 +436,8 @@ fn coerce_string_value(s: &String, transform: &Transform) -> Result<Option<Value
None => CoerceUnsupportedEpochTypeSnafu { ty: "String" }.fail(),
},
Value::Array(_) | Value::Map(_) => CoerceJsonTypeToSnafu {
Value::Array(_) | Value::Map(_) => CoerceStringToTypeSnafu {
s,
ty: transform.type_.to_str_type(),
}
.fail(),