Skip to content

New rule: Always specify column aliases instead of positional references in GROUP BY clauses. #197

Closed
@PhilippSalvisberg

Description

@PhilippSalvisberg

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.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions