New rule: Always specify column aliases instead of positional references in GROUP BY clauses.
PhilippSalvisberg opened this issue · comments
Starting with 23c it is possible to group by column alias or position.
IMO grouping by an alias is the way to go. No need to repeat a lengthy expression. It makes the code more compact and readable. Using a positional reference is bad for the same reason as stated in G-3180.