mirror of
https://github.com/apache/superset.git
synced 2026-09-01 13:01:33 +00:00
SQLAlchemy 2.0's declarative mapper now orders a model's mapped columns with the class's own Column attributes first, followed by mixin-provided columns (AuditMixinNullable's created_on/changed_on/created_by_fk/ changed_by_fk and the uuid mixin column) in mixin-declaration order, appended at the end rather than interleaved at the front. This shifted where `dbs.uuid`, `dbs.created_on`, `dbs.changed_on` (and the matching `ssh_tunnels_1.*` aliases from the joined SSHTunnel) land in the compiled SELECT list. SQLAlchemy 2.0 also renders the concatenation expression on the left of an IN clause with an explicit parenthesized group. Verified the actual compiled query has the identical column set (just reordered) and an equivalent WHERE clause (same expression, extra parens), then updated the hardcoded expected string in test_database_filter to match.