"does not work" ? On Tue, Apr 3, 2018 at 6:43 PM, Jonathan Vanasco <jvana...@gmail.com> wrote: > I couldn't find docs on this behavior, so wanted to ask before filing a > ticket with a test-case. If this isn't the expected behavior, I'll generate > a SSCCE. I think it might be expected though. > > I have a form of a query that uses an ORM object joined against a subquery > > It works when the subquery is the first element > > query = > dbSession.query(sqlalchemy.func.max(subquery.c.event_timestamp).label('event_timestamp'), > model.Foo.id.label('foo_id'), > )... > > but it does not work when the subquery is the second element > > query = dbSession.query(model.Foo.id.label('foo_id'), > > sqlalchemy.func.max(subquery.c.event_timestamp).label('event_timestamp'), > )... > > -- > SQLAlchemy - > The Python SQL Toolkit and Object Relational Mapper > > http://www.sqlalchemy.org/ > > To post example code, please provide an MCVE: Minimal, Complete, and > Verifiable Example. See http://stackoverflow.com/help/mcve for a full > description. > --- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sqlalchemy+unsubscr...@googlegroups.com. > To post to this group, send email to sqlalchemy@googlegroups.com. > Visit this group at https://groups.google.com/group/sqlalchemy. > For more options, visit https://groups.google.com/d/optout.
-- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.