| 133 | } |
| 134 | |
| 135 | static bool isInt64Literal(const std::shared_ptr<Expression>& expression, int64_t value) { |
| 136 | if (expression->expressionType != ExpressionType::LITERAL || |
| 137 | expression->getDataType().getLogicalTypeID() != LogicalTypeID::INT64) { |
| 138 | return false; |
| 139 | } |
| 140 | return expression->constCast<LiteralExpression>().getValue().getValue<int64_t>() == value; |
| 141 | } |
| 142 | |
| 143 | static std::optional<std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>>> |
| 144 | tryGetModuloSumPredicateInputs(const std::shared_ptr<Expression>& predicate) { |
no test coverage detected