Skip to content

Fix ANY graph dynamic property scans#435

Merged
adsharma merged 1 commit intomainfrom
any_graph_fix
Apr 29, 2026
Merged

Fix ANY graph dynamic property scans#435
adsharma merged 1 commit intomainfrom
any_graph_fix

Conversation

@adsharma
Copy link
Copy Markdown
Contributor

ANY graph node patterns bind labels like User and City to the internal _nodes table, where user-defined properties are stored inside the JSON data column. Scan planning was still trying to read dynamic properties such as name as physical columns, so MATCH ... RETURN u.name either failed during mapping or produced no useful result after CREATE.

Teach ScanNodeTable mapping to scan the data column for missing physical properties on ANY graph tables, and extend ColumnCaster to extract the requested JSON key into the projected result vector. This keeps normal physical-column scans unchanged while allowing dynamic properties to be returned from ANY graphs.

Add regression coverage for creating a User-[:LivesIn]->City pattern and returning u.name and c.name.

ANY graph node patterns bind labels like User and City to the internal _nodes table, where user-defined properties are stored inside the JSON data column. Scan planning was still trying to read dynamic properties such as name as physical columns, so MATCH ... RETURN u.name either failed during mapping or produced no useful result after CREATE.

Teach ScanNodeTable mapping to scan the data column for missing physical properties on ANY graph tables, and extend ColumnCaster to extract the requested JSON key into the projected result vector. This keeps normal physical-column scans unchanged while allowing dynamic properties to be returned from ANY graphs.

Add regression coverage for creating a User-[:LivesIn]->City pattern and returning u.name and c.name.
@adsharma adsharma merged commit 1503c44 into main Apr 29, 2026
4 checks passed
@adsharma adsharma deleted the any_graph_fix branch April 29, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant