|
21 | 21 | use crate::{error::BallistaError, serde::scheduler::Action as BallistaAction};
|
22 | 22 | use arrow_flight::sql::ProstMessageExt;
|
23 | 23 | use datafusion::execution::runtime_env::RuntimeEnv;
|
24 |
| -use datafusion::logical_plan::{FunctionRegistry, Operator}; |
| 24 | +use datafusion::logical_plan::FunctionRegistry; |
25 | 25 | use datafusion::physical_plan::join_utils::JoinSide;
|
26 | 26 | use datafusion::physical_plan::ExecutionPlan;
|
27 | 27 | use datafusion_proto::logical_plan::{
|
@@ -209,40 +209,6 @@ macro_rules! convert_box_required {
|
209 | 209 | }};
|
210 | 210 | }
|
211 | 211 |
|
212 |
| -pub(crate) fn from_proto_binary_op(op: &str) -> Result<Operator, BallistaError> { |
213 |
| - match op { |
214 |
| - "And" => Ok(Operator::And), |
215 |
| - "Or" => Ok(Operator::Or), |
216 |
| - "Eq" => Ok(Operator::Eq), |
217 |
| - "NotEq" => Ok(Operator::NotEq), |
218 |
| - "LtEq" => Ok(Operator::LtEq), |
219 |
| - "Lt" => Ok(Operator::Lt), |
220 |
| - "Gt" => Ok(Operator::Gt), |
221 |
| - "GtEq" => Ok(Operator::GtEq), |
222 |
| - "Plus" => Ok(Operator::Plus), |
223 |
| - "Minus" => Ok(Operator::Minus), |
224 |
| - "Multiply" => Ok(Operator::Multiply), |
225 |
| - "Divide" => Ok(Operator::Divide), |
226 |
| - "Modulo" => Ok(Operator::Modulo), |
227 |
| - "Like" => Ok(Operator::Like), |
228 |
| - "NotLike" => Ok(Operator::NotLike), |
229 |
| - "IsDistinctFrom" => Ok(Operator::IsDistinctFrom), |
230 |
| - "IsNotDistinctFrom" => Ok(Operator::IsNotDistinctFrom), |
231 |
| - "BitwiseAnd" => Ok(Operator::BitwiseAnd), |
232 |
| - "BitwiseOr" => Ok(Operator::BitwiseOr), |
233 |
| - "BitwiseShiftLeft" => Ok(Operator::BitwiseShiftLeft), |
234 |
| - "BitwiseShiftRight" => Ok(Operator::BitwiseShiftRight), |
235 |
| - "RegexIMatch" => Ok(Operator::RegexIMatch), |
236 |
| - "RegexMatch" => Ok(Operator::RegexMatch), |
237 |
| - "RegexNotIMatch" => Ok(Operator::RegexNotIMatch), |
238 |
| - "RegexNotMatch" => Ok(Operator::RegexNotMatch), |
239 |
| - "StringConcat" => Ok(Operator::StringConcat), |
240 |
| - other => Err(proto_error(format!( |
241 |
| - "Unsupported binary operator '{:?}'", |
242 |
| - other |
243 |
| - ))), |
244 |
| - } |
245 |
| -} |
246 | 212 | impl From<protobuf::JoinSide> for JoinSide {
|
247 | 213 | fn from(t: protobuf::JoinSide) -> Self {
|
248 | 214 | match t {
|
|
0 commit comments