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

Converting an empty list to relational algebra throws #59

Closed
julianhyde opened this issue Aug 3, 2021 · 1 comment
Closed

Converting an empty list to relational algebra throws #59

julianhyde opened this issue Aug 3, 2021 · 1 comment

Comments

@julianhyde
Copy link
Collaborator

In hybrid mode (where we convert Morel to expressions to relational algebra) a query on an empty list gives an error:

= Sys.set ("hybrid", true);
val it = () : unit
= from e in [] yield {a = 1, b = 2};
bad INTERSECT/UNION/EXCEPT input count

The problem is that we are trying to create a Calcite Union relational operator with zero inputs.

@julianhyde
Copy link
Collaborator Author

Fixed in 78d3c33.

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

No branches or pull requests

1 participant