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

Function construct

src/binder/bind/bind_graph_pattern.cpp:264–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264static std::shared_ptr<PropertyExpression> construct(LogicalType type,
265 const std::string& propertyName, const Expression& child) {
266 DASSERT(child.expressionType == ExpressionType::PATTERN);
267 auto& patternExpr = child.constCast<NodeOrRelExpression>();
268 auto variableName = patternExpr.getVariableName();
269 auto uniqueName = patternExpr.getUniqueName();
270 // Assign an invalid property id for virtual property.
271 table_id_map_t<SingleLabelPropertyInfo> infos;
272 for (auto& entry : patternExpr.getEntries()) {
273 infos.insert({entry->getTableID(),
274 SingleLabelPropertyInfo(false /* exists */, false /* isPrimaryKey */)});
275 }
276 return std::make_unique<PropertyExpression>(std::move(type), propertyName, uniqueName,
277 variableName, std::move(infos));
278}
279
280std::shared_ptr<RelExpression> Binder::createNonRecursiveQueryRel(const std::string& parsedName,
281 const std::vector<TableCatalogEntry*>& entries, std::shared_ptr<NodeExpression> srcNode,

Callers 15

bindFuncFunction · 0.85
writeCopyNodeStatementFunction · 0.85
writeCopyRelStatementFunction · 0.85
bindFuncFunction · 0.85
initSharedStateFunction · 0.85
sniffCSVMethod · 0.85
bindColumnsFromFileFunction · 0.85
bindFuncFunction · 0.85
initSharedStateFunction · 0.85
getScanFunctionMethod · 0.85

Calls 5

getVariableNameMethod · 0.45
getUniqueNameMethod · 0.45
getEntriesMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected