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

Degenerate natural realjoin should be Cartesian product #14

Closed
apjanke opened this issue Mar 2, 2019 · 2 comments
Closed

Degenerate natural realjoin should be Cartesian product #14

apjanke opened this issue Mar 2, 2019 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@apjanke
Copy link
Owner

apjanke commented Mar 2, 2019

Right now, a degenerate realjoin (that is, no variable names in common) produces an error, just like a degenerate join. In relational algebra, a degenerate join (no key columns in common) produces a Cartesian product, not an error. realjoin should probably do that.

The “plain” join should not degenerate to cartesian product, for Matlab compatibility: I'm pretty sure Matlab's table's join requires at least 1 common key column, defined either naturally or by input options.

@apjanke apjanke changed the title Degenerate natural join should be cartesian product Degenerate natural realjoin should be cartesian product Mar 2, 2019
@apjanke apjanke mentioned this issue Mar 2, 2019
58 tasks
@apjanke apjanke self-assigned this Mar 2, 2019
@apjanke apjanke added this to the 1.0 milestone Mar 2, 2019
@apjanke apjanke added the bug Something isn't working label Mar 2, 2019
@apjanke
Copy link
Owner Author

apjanke commented Mar 2, 2019

I've added a cartesian() method so this would be easy to implement now.

@apjanke apjanke changed the title Degenerate natural realjoin should be cartesian product Degenerate natural realjoin should be Cartesian product Mar 2, 2019
@apjanke
Copy link
Owner Author

apjanke commented Mar 3, 2019

Done in 022d6c9.

@apjanke apjanke closed this as completed Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant