Open gijzelaerr opened 7 years ago
it looks like sqlalchemy.select().group_by(expr)
doesnt use the label of an expression, while order_by(expr)
does where expr = (table.c.x + table.c.y).label('lx')
reported issue upstream https://groups.google.com/forum/#!topic/sqlalchemy/r4X7ddN4rgA