<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:08:41 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[DOCS-13770] [Server] $bucketAuto documentation states the max id is exclusive but it is inclusive for the last bucket</title>
                <link>https://jira.mongodb.org/browse/DOCS-13770</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Description&quot;&gt;&lt;/a&gt;Description&lt;/h2&gt;
&lt;p&gt;The documentation for $bucketAuto found here:&#160;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/aggregation/bucketAuto/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/operator/aggregation/bucketAuto/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;States: &quot;The document for each bucket contains an&#160;&lt;tt&gt;_id&lt;/tt&gt;&#160;field, whose value specifies the inclusive lower bound and the exclusive upper bound for the bucket...&quot;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The problem is that for the last bucket, the max value in the id field is inclusive.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The example on your page shows this to be the case:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Using these documents:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

{ &quot;_id&quot; : 1, &quot;title&quot; : &quot;The Pillars of Society&quot;, &quot;artist&quot; : &quot;Grosz&quot;, &quot;year&quot; : 1926,

&#160;&#160;&#160; &quot;price&quot; : NumberDecimal(&quot;199.99&quot;),

&#160;&#160;&#160; &quot;dimensions&quot; : \{ &quot;height&quot; : 39, &quot;width&quot; : 21, &quot;units&quot; : &quot;in&quot; }
&lt;p&gt; }&lt;/p&gt;

{ &quot;_id&quot; : 2, &quot;title&quot; : &quot;Melancholy III&quot;, &quot;artist&quot; : &quot;Munch&quot;, &quot;year&quot; : 1902,

&#160;&#160;&#160; &quot;price&quot; : NumberDecimal(&quot;280.00&quot;),

&#160;&#160;&#160; &quot;dimensions&quot; : \{ &quot;height&quot; : 49, &quot;width&quot; : 32, &quot;units&quot; : &quot;in&quot; }
&lt;p&gt; }&lt;/p&gt;

{ &quot;_id&quot; : 3, &quot;title&quot; : &quot;Dancer&quot;, &quot;artist&quot; : &quot;Miro&quot;, &quot;year&quot; : 1925,

&#160;&#160;&#160; &quot;price&quot; : NumberDecimal(&quot;76.04&quot;),

&#160;&#160;&#160; &quot;dimensions&quot; : \{ &quot;height&quot; : 25, &quot;width&quot; : 20, &quot;units&quot; : &quot;in&quot; }
&lt;p&gt; }&lt;/p&gt;

{ &quot;_id&quot; : 4, &quot;title&quot; : &quot;The Great Wave off Kanagawa&quot;, &quot;artist&quot; : &quot;Hokusai&quot;,

&#160;&#160;&#160; &quot;price&quot; : NumberDecimal(&quot;167.30&quot;),

&#160;&#160;&#160; &quot;dimensions&quot; : \{ &quot;height&quot; : 24, &quot;width&quot; : 36, &quot;units&quot; : &quot;in&quot; }
&lt;p&gt; }&lt;/p&gt;

{ &quot;_id&quot; : 5, &quot;title&quot; : &quot;The Persistence of Memory&quot;, &quot;artist&quot; : &quot;Dali&quot;, &quot;year&quot; : 1931,

&#160;&#160;&#160; &quot;price&quot; : NumberDecimal(&quot;483.00&quot;),

&#160;&#160;&#160; &quot;dimensions&quot; : \{ &quot;height&quot; : 20, &quot;width&quot; : 24, &quot;units&quot; : &quot;in&quot; }
&lt;p&gt; }&lt;/p&gt;

{ &quot;_id&quot; : 6, &quot;title&quot; : &quot;Composition VII&quot;, &quot;artist&quot; : &quot;Kandinsky&quot;, &quot;year&quot; : 1913,

&#160;&#160;&#160; &quot;price&quot; : NumberDecimal(&quot;385.00&quot;),

&#160;&#160;&#160; &quot;dimensions&quot; : \{ &quot;height&quot; : 30, &quot;width&quot; : 46, &quot;units&quot; : &quot;in&quot; }
&lt;p&gt; }&lt;/p&gt;

{ &quot;_id&quot; : 7, &quot;title&quot; : &quot;The Scream&quot;, &quot;artist&quot; : &quot;Munch&quot;,

&#160;&#160;&#160; &quot;price&quot; : NumberDecimal(&quot;159.00&quot;),

&#160;&#160;&#160; &quot;dimensions&quot; : \{ &quot;height&quot; : 24, &quot;width&quot; : 18, &quot;units&quot; : &quot;in&quot; }
&lt;p&gt; }&lt;/p&gt;

{ &quot;_id&quot; : 8, &quot;title&quot; : &quot;Blue Flower&quot;, &quot;artist&quot; : &quot;O&apos;Keefe&quot;, &quot;year&quot; : 1918,

&#160;&#160;&#160; &quot;price&quot; : NumberDecimal(&quot;118.42&quot;),

&#160;&#160;&#160; &quot;dimensions&quot; : \{ &quot;height&quot; : 24, &quot;width&quot; : 20, &quot;units&quot; : &quot;in&quot; }
&lt;p&gt; }&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;With this pipeline:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;db.artwork.aggregate( [&lt;/p&gt;

&lt;p&gt;&#160;&#160; {&lt;/p&gt;

&lt;p&gt;&#160;&#160;&#160;&#160; $bucketAuto: &lt;/p&gt;
{

&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupBy: &quot;$price&quot;,

&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; buckets: 4

&#160;&#160;&#160;&#160; }

&lt;p&gt;&#160;&#160; }&lt;/p&gt;

&lt;p&gt;] )&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Produces these four buckets:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;{&lt;/p&gt;

&lt;p&gt;&#160; &quot;_id&quot; : &lt;/p&gt;
{

&#160;&#160;&#160; &quot;min&quot; : NumberDecimal(&quot;76.04&quot;),

&#160;&#160;&#160; &quot;max&quot; : NumberDecimal(&quot;159.00&quot;)

&#160; }
&lt;p&gt;,&lt;/p&gt;

&lt;p&gt;&#160; &quot;count&quot; : 2&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;{&lt;/p&gt;

&lt;p&gt;&#160; &quot;_id&quot; : &lt;/p&gt;
{

&#160;&#160;&#160; &quot;min&quot; : NumberDecimal(&quot;159.00&quot;),

&#160;&#160;&#160; &quot;max&quot; : NumberDecimal(&quot;199.99&quot;)

&#160; }
&lt;p&gt;,&lt;/p&gt;

&lt;p&gt;&#160; &quot;count&quot; : 2&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;{&lt;/p&gt;

&lt;p&gt;&#160; &quot;_id&quot; : &lt;/p&gt;
{

&#160;&#160;&#160; &quot;min&quot; : NumberDecimal(&quot;199.99&quot;),

&#160;&#160;&#160; &quot;max&quot; : NumberDecimal(&quot;385.00&quot;)

&#160; }
&lt;p&gt;,&lt;/p&gt;

&lt;p&gt;&#160; &quot;count&quot; : 2&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;{&lt;/p&gt;

&lt;p&gt;&#160; &quot;_id&quot; : &lt;/p&gt;
{

&#160;&#160;&#160; &quot;min&quot; : NumberDecimal(&quot;385.00&quot;),

&#160;&#160;&#160; &quot;max&quot; : NumberDecimal(&quot;483.00&quot;)

&#160; }
&lt;p&gt;,&lt;/p&gt;

&lt;p&gt;&#160; &quot;count&quot; : 2&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Notice how the max of the last bucket matches the highest price document.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;We ask that the documentation be updated to confirm that this is the correct behavior as right now it appears to be a bug since the documentation states the max id is suppose to be exclusive.&lt;/p&gt;

&lt;h2&gt;&lt;a name=&quot;Scopeofchanges&quot;&gt;&lt;/a&gt;Scope of changes&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;ImpacttoOtherDocs&quot;&gt;&lt;/a&gt;Impact to Other Docs&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;MVP%28WorkandDate%29&quot;&gt;&lt;/a&gt;MVP (Work and Date)&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;Resources%28ScopeorDesignDocs%2CInvision%2Cetc.%29&quot;&gt;&lt;/a&gt;Resources (Scope or Design Docs, Invision, etc.)&lt;/h2&gt;
</description>
                <environment>&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/aggregation/bucketAuto/&quot;&gt;https://docs.mongodb.com/manual/reference/operator/aggregation/bucketAuto/&lt;/a&gt;</environment>
        <key id="1413463">DOCS-13770</key>
            <summary>[Server] $bucketAuto documentation states the max id is exclusive but it is inclusive for the last bucket</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="jeffrey.allen@mongodb.com">Jeffrey Allen</assignee>
                                    <reporter username="vincent.palodichuk@primetherapeutics.com">Vincent Palodichuk</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Jul 2020 16:45:46 +0000</created>
                <updated>Mon, 30 Oct 2023 20:20:18 +0000</updated>
                            <resolved>Tue, 21 Jul 2020 20:24:29 +0000</resolved>
                                    <version>3.6.17</version>
                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3310852" author="JIRAUSER1254182" created="Tue, 28 Jul 2020 21:07:49 +0000"  >&lt;p&gt;Thanks for the quick turn-a-round on this!!&lt;/p&gt;</comment>
                            <comment id="3295422" author="xgen-internal-githook" created="Tue, 21 Jul 2020 20:24:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jeff-allen-mongo&apos;, &apos;email&apos;: &apos;jeffrey.allen@10gen.com&apos;, &apos;username&apos;: &apos;jeff-allen-mongo&apos;}
&lt;p&gt;Message: (&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13770&quot; title=&quot;[Server] $bucketAuto documentation states the max id is exclusive but it is inclusive for the last bucket&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13770&quot;&gt;&lt;del&gt;DOCS-13770&lt;/del&gt;&lt;/a&gt;): Clarifications to bucketAuto&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/d2c7150ea3c0437b4b5c0d7af3d192fda710cbaa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/d2c7150ea3c0437b4b5c0d7af3d192fda710cbaa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3295420" author="xgen-internal-githook" created="Tue, 21 Jul 2020 20:22:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jeff-allen-mongo&apos;, &apos;email&apos;: &apos;jeffrey.allen@10gen.com&apos;, &apos;username&apos;: &apos;jeff-allen-mongo&apos;}
&lt;p&gt;Message: (&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13770&quot; title=&quot;[Server] $bucketAuto documentation states the max id is exclusive but it is inclusive for the last bucket&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13770&quot;&gt;&lt;del&gt;DOCS-13770&lt;/del&gt;&lt;/a&gt;): Clarifications to bucketAuto&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/507e31281276f4ed2e833e06e920d018607aa23a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/507e31281276f4ed2e833e06e920d018607aa23a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3295417" author="xgen-internal-githook" created="Tue, 21 Jul 2020 20:21:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jeff-allen-mongo&apos;, &apos;email&apos;: &apos;jeffrey.allen@10gen.com&apos;, &apos;username&apos;: &apos;jeff-allen-mongo&apos;}
&lt;p&gt;Message: (&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13770&quot; title=&quot;[Server] $bucketAuto documentation states the max id is exclusive but it is inclusive for the last bucket&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13770&quot;&gt;&lt;del&gt;DOCS-13770&lt;/del&gt;&lt;/a&gt;): Clarifications to bucketAuto&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/b8a7bea230a71c40aae86a324431ba01c980d359&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/b8a7bea230a71c40aae86a324431ba01c980d359&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3295415" author="xgen-internal-githook" created="Tue, 21 Jul 2020 20:19:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jeff-allen-mongo&apos;, &apos;email&apos;: &apos;jeffrey.allen@10gen.com&apos;, &apos;username&apos;: &apos;jeff-allen-mongo&apos;}
&lt;p&gt;Message: (&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13770&quot; title=&quot;[Server] $bucketAuto documentation states the max id is exclusive but it is inclusive for the last bucket&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13770&quot;&gt;&lt;del&gt;DOCS-13770&lt;/del&gt;&lt;/a&gt;): Clarifications to bucketAuto&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/da99c41dc308f93c7cb445b246a69d2fbd93eb32&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/da99c41dc308f93c7cb445b246a69d2fbd93eb32&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3290281" author="JIRAUSER1254182" created="Fri, 17 Jul 2020 17:03:13 +0000"  >&lt;p&gt;I selected the wrong version. We are using MongoDB 4.2&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 21 Jul 2020 20:19:38 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 28 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 28 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jeffrey.allen@mongodb.com</customfieldvalue>
            <customfieldvalue>vincent.palodichuk@primetherapeutics.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxvigf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxiezr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4094">CET: Xocolatl (14-20 Jul 2020)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxv4pr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>