(&self, batch: &RecordBatch)
| 114 | } |
| 115 | |
| 116 | fn evaluate(&self, batch: &RecordBatch) -> Result<ColumnarValue> { |
| 117 | let lhs = self.expr.evaluate(batch)?; |
| 118 | let rhs = self.pattern.evaluate(batch)?; |
| 119 | match (self.negated, self.case_insensitive) { |
| 120 | (false, false) => apply_cmp(Operator::LikeMatch, &lhs, &rhs), |
| 121 | (false, true) => apply_cmp(Operator::ILikeMatch, &lhs, &rhs), |
| 122 | (true, false) => apply_cmp(Operator::NotLikeMatch, &lhs, &rhs), |
| 123 | (true, true) => apply_cmp(Operator::NotILikeMatch, &lhs, &rhs), |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | fn children(&self) -> Vec<&Arc<dyn PhysicalExpr>> { |
| 128 | vec![&self.expr, &self.pattern] |
nothing calls this directly
no test coverage detected