You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Join attributes should live on edges, not nodes #8
Join metadata (join_type, join_condition) is currently stored on bothNode and Edge types. The frontend reads join info from the source node and copies it onto edges for rendering (graphBuilders.ts).
Joins are semantically an edge concept (a relationship between two tables), not a node property. The current approach:
Creates redundancy (same info in 3 places: node, JoinDependency edge, DataFlow/Derivation edge)
Can cause inconsistency if node and edge data diverge
Causes visualization issues when the same table participates in multiple joins
Current Flow
During AST traversal, ctx.current_join_info is set before the joined table node is created
Node is created with join_type/join_condition from context (query.rs:232-248)
Frontend reads from node and propagates to edges (graphBuilders.ts:523-540)
Proposed Fix
Remove join_type and join_condition from Node
Keep them only on Edge
Update the analyzer to attach join info directly to edges at creation time
Activity
Move join attributes from nodes to edges