Mayil-AI-Sandbox / kuzudb_jan15

MIT License
0 stars 0 forks source link

Enable multiple node types for single relationship type table (hashtag2866) #10

Open vikramsubramanian opened 4 months ago

vikramsubramanian commented 4 months ago

Excited about the possibilities of Kuzu, thanks for your great work on this project! This issue may overlap with hashtag1644 (perhaps the "Data Manipulation" section?), but it felt important enough to be specific here.

I noticed that each REL table in Kuzu may only contain one node type for the FROM and TO specification ([docs]( This may be limiting in scenarios where a graph dataset includes relationships that involve multiple node types. I wanted to raise this issue to help explore and understand the capabilities within Kuzu to perhaps eventually use multiple node types in the FROM or TO specification for REL tables. Please don't hesitate to mention whether this is considered "out of scope" for the Kuzu roadmap more broadly.

I'm also interested in potential workarounds to this in the meantime, understanding it could take time for this feature to arrive if it's intended to be developed. Two that come to mind are:

Both of these may come with ramifications that over-loosen or constrain the data, and I imagine there could be a performance element to these. Appreciate any input you may have on this topic! Thanks again.

)

mayil-ai[bot] commented 4 months ago

Summary: Request to enable multiple node types for a single relationship type table in Kuzu.

Possible Solution

To address the feature request for supporting multiple node types in the FROM or TO specification for REL tables in Kùzu, you can implement the following solution:

Code snippets to check