Skip to content

Apache DataFusion SQL Query Engine

make the function from_proto_binary_op public (#3490)

askoa84bee899958a
diff --git a/datafusion/proto/src/from_proto.rs b/datafusion/proto/src/from_proto.rs
index 5402b03ce3..b82237788a 100644
--- a/datafusion/proto/src/from_proto.rs
+++ b/datafusion/proto/src/from_proto.rs
@@ -1515,7 +1515,7 @@ fn unwrap_timezone(proto_value: &str) -> Option<String> {
}
}
-fn from_proto_binary_op(op: &str) -> Result<Operator, Error> {
+pub fn from_proto_binary_op(op: &str) -> Result<Operator, Error> {
match op {
"And" => Ok(Operator::And),
"Or" => Ok(Operator::Or),