Skip to content

Support sorting by aliased columns #2863

@gregturn

Description

@gregturn

For queries where a column is an alias:

select AVG(p.points) as avg
from Player p

...when we have a Sort.by("avg"), it should NOT append order by p.avg but instead simply have order by avg.

Essentially, anywhere we have an aliased column or value, that should be supported in the order by operations.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions