Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mihaibudiu
Copy link
Contributor

Fixes #5441

@swanandx please try this and approve if the output is what you need.
See the file using.md for some brief documentation.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new --correlatedColumns compiler flag that performs lineage analysis to discover table columns that are directly compared in equijoin operations. The feature outputs correlated column sets in the format [Correlated:] [table0.column1, table2.column0, ...].

Changes:

  • Added new Lineage visitor class (~846 lines) implementing dataflow lineage analysis
  • Added --correlatedColumns command-line flag to enable the feature
  • Added test coverage for both inner lineage analysis and the end-to-end flag functionality
  • Updated documentation to describe the new option

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
Lineage.java New visitor implementing lineage analysis through dataflow graph traversal and symbolic interpretation
LineageTests.java New test file with unit tests for inner lineage analysis and integration test for the correlatedColumns flag
CompilerOptions.java Added correlatedColumns boolean option and reorganized toString output alphabetically
CircuitOptimizer.java Integrated Lineage visitor into optimization pipeline when flag is enabled
using.md Added documentation for the new --correlatedColumns flag with usage examples
MetadataTests.java Updated help message test to include new flag
DBSPAssignmentExpression.java Added clarifying documentation comment
ToDotNodesVisitor.java Refactored join operator coloring to use DBSPJoinBaseOperator check

Copy link
Contributor

@swanandx swanandx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much! 🚀

@swanandx swanandx added this pull request to the merge queue Jan 21, 2026
Merged via the queue into main with commit 4257527 Jan 21, 2026
1 check passed
@swanandx swanandx deleted the lineage branch January 21, 2026 19:22
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.

[SQL] Dataflow analysis to discover data flow through circuit

3 participants