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

Cardinality inference for computable properties #2001

Closed
tailhook opened this issue Nov 26, 2020 · 0 comments · Fixed by #2015
Closed

Cardinality inference for computable properties #2001

tailhook opened this issue Nov 26, 2020 · 0 comments · Fixed by #2015
Assignees
Labels

Comments

@tailhook
Copy link
Contributor

  • EdgeDB Version: 1-alpha6

Could not create a required computable property:

required property deleted := EXISTS(.<element[IS DeletionRecord]);

The error is:

possibly an empty set returned by an expression for the computable 'deleted' declared as 'required'

Since EXISTS never returns empty set I expect this to work.

@elprans elprans self-assigned this Dec 2, 2020
@elprans elprans added the bug label Dec 3, 2020
elprans added a commit that referenced this issue Dec 3, 2020
The operator cardinality inference currently doesn't take into account
the optionality of the return type, which results in incorrect lower
cardinality bound for most operators.  Function inference handles this
correctly.

Fixes: #2001
elprans added a commit that referenced this issue Dec 3, 2020
The operator cardinality inference currently doesn't take into account
the optionality of the return type, which results in incorrect lower
cardinality bound for most operators.  Function inference handles this
correctly.

Fixes: #2001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants