Skip to content

Flip roots independently in disconnected DAG components - #21

Merged
JP-Reddy merged 2 commits into
robust-sql:mainfrom
jianhongshi123:dev/fix_root_flipping
Aug 28, 2026
Merged

JP-Reddy merged 2 commits into
robust-sql:mainfrom
jianhongshi123:dev/fix_root_flipping

Conversation

@jianhongshi123

Copy link
Copy Markdown
Contributor

Join edges are currently created only for COMPARE_EQUAL conditions. As a result, no edge is created for the DELIM_JOINconditions, which can leave the transfer DAG disconnected. With a single global anchor, roots in components that do not contain the anchor can be flipped indefinitely.

This PR assigns an anchor to each connected component and flips its roots independently.

Comment thread src/optimizer/robust_optimizer.hpp Outdated
}
};

struct Component {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you use a more specific name?

@JP-Reddy
JP-Reddy merged commit cb8141c into robust-sql:main Aug 28, 2026
12 checks passed
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.

2 participants