:tags: bug, sql
:tickets: 11526
- A warning is emitted when using the standalone :func:`_.sql.distinct`
+ 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.
:tags: usecase, sql
:tickets: 11671
- Add the `exclude` parameter to the `Over` construct and all `.over()`
- methods, enabling SQL standard frame exclusion clauses
- `EXCLUDE CURRENT ROW`, `EXCLUDE GROUP`, `EXCLUDE TIES`,
- `EXCLUDE NO OTHERS` in window functions.
- Pull request courtesy of Varun Chawla.
\ No newline at end of file
+ Added new parameter :paramref:`_sql.over.exclude` to :func:`_sql.over` and
+ related methods, enabling SQL standard frame exclusion clauses ``EXCLUDE
+ CURRENT ROW``, ``EXCLUDE GROUP``, ``EXCLUDE TIES``, ``EXCLUDE NO OTHERS``
+ in window functions. Pull request courtesy of Varun Chawla.
.. seealso::
- :ref:`change_12869`
+ :ref:`mssql_python` - Documentation for the mssql-python dialect
.. versionadded:: 2.0.40
- :param exclude: optional string for the frame exclusion clause.
- This is a string value which can be one of ``CURRENT ROW``,
- ``GROUP``, ``TIES``, or ``NO OTHERS`` and will render an
- EXCLUDE clause within the window frame specification. Requires
- that one of ``rows``, ``range_``, or ``groups`` is also specified.
+ :param exclude: optional string for the frame exclusion clause. This is a
+ string value which can be one of ``CURRENT ROW``, ``GROUP``, ``TIES``, or
+ ``NO OTHERS`` and will render an EXCLUDE clause within the window frame
+ specification. Requires that one of :paramref:`_sql.over.rows`,
+ :paramref:`_sql.over.range_`, or :paramref:`_sql.over.groups` is also
+ specified.
.. versionadded:: 2.1