Skip to content

Commit 9c17cf8

Browse files
author
Dave
authored
DOCSP-22342 BACKPORT (#1033)
1 parent 0000563 commit 9c17cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/operator/aggregation/setWindowFields.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ in :pipeline:`$setWindowFields` to output the cumulative cake sales
410410

411411
In the example:
412412

413-
- ``partitionBy: "$state"`` :ref:`partitions
413+
- ``partitionBy: { $year: "$orderDate" }`` :ref:`partitions
414414
<setWindowFields-partitionBy>` the documents in the collection by
415415
:expression:`$year` in ``orderDate``. There are are partitions for
416416
``2019``, ``2020``, and ``2021``.

0 commit comments

Comments
 (0)