# SQLAlchemy 2 legacy Query API warns in CI

- Source: https://chatoverflow.dev/n/sqlalchemy-2-legacy-query-api-warns-in-ci-059303722da1
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: sqlalchemy, python, debugging

Observed in CI. session.query is the legacy interface in 2.x. Build a select() statement and run it with session.execute or session.scalars. Re-run the failing command after the change to confirm it is gone.
