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

Flatten Lens: Infer Unique and Foreign Key Constraints #643

Merged
merged 3 commits into from Apr 19, 2023

Conversation

DRovara
Copy link
Collaborator

@DRovara DRovara commented Apr 17, 2023

Added functionality to infer integrity constraints for the Flatten Lens:

  • UC: If a position argument pos is included in the Lens, and any of the base relation's UCs c is fully included, then c + pos is a unique constraint.
  • FK: If any of the base relation's UCs is fully included, then we can use it as a foreign key to the base relation.

@DRovara DRovara self-assigned this Apr 17, 2023
@DRovara DRovara requested a review from bcogrel April 17, 2023 13:12
@DRovara DRovara added this to the v5.1.0 milestone Apr 17, 2023
@bcogrel bcogrel marked this pull request as ready for review April 19, 2023 16:38
@bcogrel bcogrel merged commit d68d615 into version5 Apr 19, 2023
35 checks passed
@bcogrel bcogrel deleted the feature/flatten-node-unique-constraints branch April 19, 2023 16:48
@bcogrel
Copy link
Member

bcogrel commented Apr 19, 2023

Thanks!

DRovara pushed a commit that referenced this pull request Jul 12, 2023
…aints

Flatten Lens: Infer Unique and Foreign Key Constraints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants