MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / isInt64Literal

Function isInt64Literal

src/processor/map/map_aggregate.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135static 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
143static std::optional<std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>>>
144tryGetModuloSumPredicateInputs(const std::shared_ptr<Expression>& predicate) {

Callers 1

Calls 3

getLogicalTypeIDMethod · 0.80
getDataTypeMethod · 0.80
getValueMethod · 0.45

Tested by

no test coverage detected