SQLAlchemy 2.0's select().union_all() returns a CompoundSelect which cannot chain another .union_all(). Use the standalone union_all() function to combine all three queries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
SQLAlchemy 2.0's select().union_all() returns a CompoundSelect which cannot chain another .union_all(). Use the standalone union_all() function to combine all three queries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>