Skip to content

Apache DataFusion SQL Query Engine

Octetlength in protobuf should use the octet_length function (#1834)

Carol (Nichols || Goulding)d79ca1632da4
diff --git a/ballista/rust/core/src/serde/logical_plan/from_proto.rs b/ballista/rust/core/src/serde/logical_plan/from_proto.rs
index fb900e1677..d4a28cf104 100644
--- a/ballista/rust/core/src/serde/logical_plan/from_proto.rs
+++ b/ballista/rust/core/src/serde/logical_plan/from_proto.rs
@@ -880,7 +880,7 @@ impl TryInto<Expr> for &protobuf::LogicalExprNode {
Ok(signum((&args[0]).try_into()?))
}
protobuf::ScalarFunction::Octetlength => {
- Ok(length((&args[0]).try_into()?))
+ Ok(octet_length((&args[0]).try_into()?))
}
// // protobuf::ScalarFunction::Concat => Ok(concat((&args[0]).try_into()?)),
protobuf::ScalarFunction::Lower => Ok(lower((&args[0]).try_into()?)),