-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add ForeignKey constraint type #8566
Conversation
Thank you @simonvandel -- the basic idea looks good to me. It seems we have a few CI failures on this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @simonvandel -- this is looking pretty close. I think there is a bug here, and it would be nice to see some tests that showed that the index lookups are working correctly
Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days. |
Hi @simonvandel. Do you still plan on working on this? |
Hi @andygrove If someone else wants the changes, they can use my changes in a new PR. |
Thanks @simonvandel |
Which issue does this PR close?
Closes #.
Rationale for this change
While toying around with Datafusion, I would like to use foreign key relationship metadata.
What changes are included in this PR?
Extended
Constraint
withForeignKey
.Added conversion from sqslparser's
TableConstraint
.Are these changes tested?
Yes, added a test in sql_integration.rs
Are there any user-facing changes?
Yes.
It's now possible to mark columns as foreign keys to other tables.
Adding a new enum variant is a breaking change.