Skip to content

Commit 2adb949

Browse files
aepodruvnet
andcommitted
fix(cypher): generate proper column names for property expressions
RETURN n.name now produces column "n.name" instead of "?column?". Property expressions (Expression::Property) are formatted as "object.property" for column naming, matching standard Cypher behavior. Co-Authored-By: claude-flow <ruv@ruv.net>
1 parent b2347ce commit 2adb949

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

crates/rvlite/src/cypher/executor.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,13 @@ impl<'a> Executor<'a> {
476476
.clone()
477477
.unwrap_or_else(|| match &item.expression {
478478
Expression::Variable(var) => var.clone(),
479+
Expression::Property { object, property } => {
480+
if let Expression::Variable(var) = &**object {
481+
format!("{}.{}", var, property)
482+
} else {
483+
"?column?".to_string()
484+
}
485+
}
479486
_ => "?column?".to_string(),
480487
});
481488
columns.push(col_name);

0 commit comments

Comments
 (0)