Repository navigation
Move join attributes from nodes to edges - #14
Merged
Merged
Conversation
Join metadata (join_type, join_condition) is semantically a relationship property, not a node property. This refactor removes join fields from Node and keeps them only on Edge, with a context-level joined_table_info map for analysis-time lookups. Changes: - Remove join_type/join_condition from Node (Rust + TS types) - Add joined_table_info HashMap to StatementContext for base-table detection and complexity scoring - Propagate join info to column-level edges via single-pass propagate_join_info_to_edges - Move export joins table to reference edges instead of nodes (schema version bump to "2") - Extract shared buildJoinedTableIds/formatJoinType into lineageHelpers to deduplicate across graphBuilders and the web worker - Update VS Code hover provider to read join info from edges - Add integration tests for join info propagation and non-overwrite Closes #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
join_type/join_conditionfromNode— join metadata now lives exclusively onEdgejoined_table_infocontext map for analysis-time lookups (base-table detection, complexity scoring)propagate_join_info_to_edges(single-pass candidate collection + targeted mutation)joinstable referencing edges instead of nodesbuildJoinedTableIds/formatJoinTypeintolineageHelpers.ts(deduplicates graphBuilders + web worker)Test plan
just test-rust— all Rust tests pass (including 2 new integration tests)yarn workspace @pondpilot/flowscope-react test— 113 TS tests passjust lint— clippy + eslint cleanjust fmt— formatting appliedCloses #8