| 124 | } |
| 125 | |
| 126 | static bool isScalarFunction(const std::shared_ptr<Expression>& expression, |
| 127 | const std::string& name) { |
| 128 | auto scalarFunction = dynamic_cast<const ScalarFunctionExpression*>(expression.get()); |
| 129 | if (scalarFunction == nullptr) { |
| 130 | return false; |
| 131 | } |
| 132 | return scalarFunction->getFunction().name == name; |
| 133 | } |
| 134 | |
| 135 | static bool isInt64Literal(const std::shared_ptr<Expression>& expression, int64_t value) { |
| 136 | if (expression->expressionType != ExpressionType::LITERAL || |
no test coverage detected