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

allow cartesian product whenever a set is empty #462

Merged
merged 1 commit into from
Mar 18, 2021

Conversation

chevalleyc
Copy link
Contributor

Changes

Extended the standard jsonb_array_element to return a set of NULL instead of an empty set. The issue with the standard function is that a cartesian product against an empty set is also empty. Hence, a surprisingly empty resultset when selecting multiple values. Please note that, with an ITEM_STRUCTURE, we often have arrays (f.e. items[at...]) that are implicitly iterated upon. This is similar to an SQL inner JOIN but is not trivially seen when querying it.

Related issue

Fixes: https://github.com/ehrbase/project_management/issues/510

Additional information and checks

  • Pull request linked in changelog

@birgerhaarbrandt birgerhaarbrandt merged commit 63d5373 into develop Mar 18, 2021
@birgerhaarbrandt birgerhaarbrandt deleted the feature/510_error_in_processing_OR branch March 18, 2021 18:28
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