Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework srcDstTableID #1041

Merged
merged 1 commit into from
Nov 19, 2022
Merged

Rework srcDstTableID #1041

merged 1 commit into from
Nov 19, 2022

Conversation

acquamarin
Copy link
Collaborator

@acquamarin acquamarin commented Nov 17, 2022

This PR refactors the srcDstTableID.
Instead of storing two unordered sets of src/dst tableIDs, we now store a vector of <srcTableID, dstTableID> pairs.
With the new design of srcDstTableID, we now can support more generic relations. (eg. we can have a manages rel table whose relation is: president->manager, manager->worker).

@ray6080 ray6080 self-requested a review November 18, 2022 05:47
Copy link
Contributor

@ray6080 ray6080 left a comment

Choose a reason for hiding this comment

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

One code style comment: I would prefer not using for_each, which is rarely seen in our codebase, instead, just use common for (auto& x : y) {} if you can.

src/binder/binder.cpp Outdated Show resolved Hide resolved
src/binder/binder.cpp Show resolved Hide resolved
src/catalog/catalog.cpp Outdated Show resolved Hide resolved
src/catalog/catalog_structs.cpp Outdated Show resolved Hide resolved
@acquamarin acquamarin merged commit d612639 into master Nov 19, 2022
@acquamarin acquamarin deleted the srcDstTableIDRefactor branch November 19, 2022 04:38
@ray6080 ray6080 changed the title srcDstTableID refactor Rework srcDstTableID Jan 29, 2023
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.

None yet

2 participants