agentm / project-m36

Project: M36 Relational Algebra Engine
The Unlicense
902 stars 47 forks source link

Natural Join should act like Cross Join on relations that don't share attributes #361

Closed Valdsonjr closed 1 year ago

Valdsonjr commented 1 year ago

The article for 'join' states that the result of a natural join between two relations R and S that don't have any attributes in common is supposed to be a cross join, but an empty relation is returned instead.

Expected behavior: example in the RelaX - relational algebra calculator image

Actual behavior: image

agentm commented 1 year ago

Oh, good find! I'll fix this right away.