Skip to content

Commit 1ee12aa

Browse files
committed
DOCS-14815 5.1 setWindowFields restriction updates
1 parent b3a5267 commit 1ee12aa

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Starting in MongoDB 5.1 (and 5.0.4), the :pipeline:`$setWindowFields`
2+
stage cannot be used within :doc:`transactions </core/transactions>`
3+
or with :readconcern:`snapshot` read concern.

source/reference/operator/aggregation/setWindowFields.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,12 @@ Restrictions
242242

243243
Restrictions for the :pipeline:`$setWindowFields` stage:
244244

245+
- Starting in MongoDB 5.1 (and 5.0.4), the :pipeline:`$setWindowFields`
246+
stage cannot be used:
247+
248+
- Within :doc:`transactions </core/transactions>`.
249+
- With :readconcern:`snapshot` read concern.
250+
245251
- :ref:`sortBy <setWindowFields-sortBy>` is required for:
246252

247253
- :ref:`Rank <setWindowFields-rank-operators>` and :ref:`order

source/release-notes/5.1-compatibility.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ Removed Parameters
3535
Aggregation
3636
-----------
3737

38+
``$setWindowFields`` Transactions and Snapshot Read Concern
39+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40+
41+
.. include:: /includes/fact-5.1-setWindowFields-snapshot-restriction.rst
42+
3843
Removed Index Types
3944
-------------------
4045

0 commit comments

Comments
 (0)