Thinking about joins and PRQL naming #2953
-
|
@max-sixty I've been thinking about how we can explain PRQL to newcomers with a minimum of surprises. To follow the chain of logic of #2951, are the following correct?
Any other surprised to explain? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
These are all true, nice summary of the problem. |
Beta Was this translation helpful? Give feedback.
-
|
Regarding the note: Current behavior of assigning column names:
These two rules culminate produce the behavior you observe: first select produces columns |
Beta Was this translation helpful? Give feedback.
Regarding the note:
Current behavior of assigning column names:
Col2when selectingTableA.Col2,select {a = x, a = y}will produce a relation with columns(unnamed, a),These two rules culminate produce the behavior you observe: first select produces columns
(unnamed, Col2)and the second select one picks up the second column because it is namedCol2.