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

Function isScalarFunction

src/processor/map/map_aggregate.cpp:126–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126static 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
135static bool isInt64Literal(const std::shared_ptr<Expression>& expression, int64_t value) {
136 if (expression->expressionType != ExpressionType::LITERAL ||

Callers 1

Calls 2

getMethod · 0.45
getFunctionMethod · 0.45

Tested by

no test coverage detected