]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Coercion warning feedback for unary distinct outside aggregate function
authorbekapono <bsiliezar2@gmail.com>
Tue, 24 Mar 2026 01:30:46 +0000 (21:30 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 31 Mar 2026 14:45:18 +0000 (10:45 -0400)
commit9ad90693bc8f2303f2c964271166a80520bee9bd
tree47f0581860147d4cf8c150ef3e3394b182da6e85
parentf244d5c3a92bffb93bfbaa279734a3a508da7bc3
Coercion warning feedback for unary distinct outside aggregate function

A warning is emitted when using the standalone :func:`_.sql.distinct`
function in a :func:`_sql.select` columns list outside of an aggregate
function; this function is not intended as a replacement for the use of
:meth:`.Select.distinct`. Pull request courtesy bekapono.

Fixes: #11526
Closes: #13162
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/13162
Pull-request-sha: c6e8be7a49fecb1402dc249c84e7f982c1c34821

Change-Id: Ibbdd64a922c62a7a9ead566590ad854db4066565
doc/build/changelog/unreleased_21/11526.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/orm/test_query.py
test/sql/test_compiler.py
test/sql/test_operators.py
test/sql/test_resultset.py
test/sql/test_types.py