Skip to content

fix: handle missing _edges table in typed subgraph when creating edges#686

Merged
adsharma merged 1 commit into
mainfrom
fix/typed-subgraph-edge-create
Jul 14, 2026
Merged

fix: handle missing _edges table in typed subgraph when creating edges#686
adsharma merged 1 commit into
mainfrom
fix/typed-subgraph-edge-create

Conversation

@adsharma

Copy link
Copy Markdown
Contributor

When creating an edge via MATCH ... CREATE in a strongly-typed subgraph (not ANY), the code tried to look up '_edges' in the default graph catalog without checking if it exists. This caused a 'Catalog exception: _edges does not exist in catalog' error.

Fix by checking containsTable() before accessing the _edges table, matching the pattern already used in bind_graph_pattern.cpp.

Add test test_files/graph/typed_subgraph.test covering:

  • Creating a strongly-typed (non-ANY) subgraph
  • Creating node and rel tables in the subgraph
  • Creating nodes and edges with MATCH ... CREATE
  • Querying the created nodes and edges

When creating an edge via MATCH ... CREATE in a strongly-typed subgraph
(not ANY), the code tried to look up '_edges' in the default graph catalog
without checking if it exists. This caused a 'Catalog exception: _edges does
not exist in catalog' error.

Fix by checking containsTable() before accessing the _edges table, matching
the pattern already used in bind_graph_pattern.cpp.

Add test test_files/graph/typed_subgraph.test covering:
- Creating a strongly-typed (non-ANY) subgraph
- Creating node and rel tables in the subgraph
- Creating nodes and edges with MATCH ... CREATE
- Querying the created nodes and edges
@adsharma adsharma force-pushed the fix/typed-subgraph-edge-create branch from 0c22c5e to 07a4503 Compare July 14, 2026 17:22
@adsharma adsharma merged commit c7449f5 into main Jul 14, 2026
4 checks passed
@adsharma adsharma deleted the fix/typed-subgraph-edge-create branch July 14, 2026 20:37
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