agentm / project-m36

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

consider new join syntax leveraging key definitions #378

Open agentm opened 1 month ago

agentm commented 1 month ago

Joins in TutorialD are currently a bit clunky because one must rename attributes to be equal. Instead, we propose new syntactic sugar to generate the renames from declared foreign keys:

Proposed syntax:

rvA join rvB using foreign key rvA_rvB_fk

This syntax should use the existing attribute names, if possible, otherwise the expression could create arbitrarily-named attributes, which is bad for reproducibility.