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

feat: define SetRel output nullability derivation (#558) #654

Merged
merged 7 commits into from
Jul 5, 2024

Conversation

vbarua
Copy link
Member

@vbarua vbarua commented Jun 26, 2024

No description provided.

@vbarua
Copy link
Member Author

vbarua commented Jun 26, 2024

I've attempted to clarify the language around SetRels and provide additional information around deriving nullability for the output types.

@vbarua vbarua force-pushed the vbarua/558/set-rel-output-shape branch from 2e9f307 to 16d1518 Compare June 26, 2024 19:06
EpsilonPrime
EpsilonPrime previously approved these changes Jun 26, 2024
site/docs/relations/logical_relations.md Outdated Show resolved Hide resolved
site/docs/relations/logical_relations.md Outdated Show resolved Hide resolved
site/docs/relations/logical_relations.md Outdated Show resolved Hide resolved
EpsilonPrime
EpsilonPrime previously approved these changes Jun 26, 2024
westonpace
westonpace previously approved these changes Jun 27, 2024
Copy link
Member

@westonpace westonpace left a comment

Choose a reason for hiding this comment

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

Looks good (modulo a few minor things). Thanks for clarifying.

site/docs/relations/logical_relations.md Outdated Show resolved Hide resolved
site/docs/relations/logical_relations.md Outdated Show resolved Hide resolved
site/docs/relations/logical_relations.md Outdated Show resolved Hide resolved
@westonpace
Copy link
Member

Does this mean that the union relation considers "null matches null". In other words, if I intersect {NULL, 0, 5} with {10, NULL, 5} is the result {NULL, 5} and if I intersect {NULL, 0, 5} with {0, 10, 20} is the result {0}?

Do we want to clarify that somewhere too (I think the "does NULL match NULL" question comes up in joins too but I don't remember if we clarified there or not)

Co-authored-by: Weston Pace <weston.pace@gmail.com>
vbarua and others added 3 commits June 28, 2024 11:11
@vbarua
Copy link
Member Author

vbarua commented Jun 28, 2024

Does this mean that the union relation considers "null matches null".

@westonpace it does. I added a note about this.

@vbarua vbarua merged commit 612123a into main Jul 5, 2024
2 checks passed
@vbarua vbarua deleted the vbarua/558/set-rel-output-shape branch July 5, 2024 19:54
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.

3 participants