<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:42:40 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>[SERVER-57741] SBE should order projection fields ahead of expression fields in a $project stage</title>
                <link>https://jira.mongodb.org/browse/SERVER-57741</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The behavior of $project in the classic engine is to order projection fields ahead of fields which require expression evaluation. SBE engine doesn&apos;t seemed to follow this convention, which is producing failures on the aggregation fuzzers. We should fix the behavior to match that of classic engine. &lt;/p&gt;</description>
                <environment></environment>
        <key id="1786201">SERVER-57741</key>
            <summary>SBE should order projection fields ahead of expression fields in a $project stage</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="mohammad.dashti@mongodb.com">Mohammad Dashti</assignee>
                                    <reporter username="arun.banala@mongodb.com">Arun Banala</reporter>
                        <labels>
                            <label>sbe-diff</label>
                            <label>sbe-post-v1</label>
                            <label>sbe-rollout</label>
                    </labels>
                <created>Wed, 16 Jun 2021 14:23:07 +0000</created>
                <updated>Sun, 29 Oct 2023 21:52:07 +0000</updated>
                            <resolved>Tue, 29 Jun 2021 15:46:52 +0000</resolved>
                                                    <fixVersion>5.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="4107709" author="JIRAUSER1259052" created="Wed, 6 Oct 2021 18:34:01 +0000"  >&lt;p&gt;Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it&#8217;s been triggered. For more active release information, please keep an eye on #server-release. Thank you!&lt;/p&gt;</comment>
                            <comment id="3906948" author="xgen-internal-githook" created="Tue, 29 Jun 2021 09:55:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Mohammad Dashti&apos;, &apos;email&apos;: &apos;mdashti@gmail.com&apos;, &apos;username&apos;: &apos;mdashti&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57741&quot; title=&quot;SBE should order projection fields ahead of expression fields in a $project stage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57741&quot;&gt;&lt;del&gt;SERVER-57741&lt;/del&gt;&lt;/a&gt; Fixed SBE to order projection fields ahead of expression fields in a $project stage (to bring it closer to the behaviour of classic engine)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/28812fce0bd40c9320740f0b9cbcb5f7b686eba7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/28812fce0bd40c9320740f0b9cbcb5f7b686eba7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3891269" author="arun.banala" created="Tue, 22 Jun 2021 14:25:48 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mohammad.dashti&quot; class=&quot;user-hover&quot; rel=&quot;mohammad.dashti&quot;&gt;mohammad.dashti&lt;/a&gt; That&apos;s the current behaviour in the classic engine. The projected fields are ordered first and in the order in which they appear in the underlying documents. Then the expression fields (the new fields to be added) are ordered in the way they appear in the specification. &lt;/p&gt;</comment>
                            <comment id="3890500" author="JIRAUSER1259138" created="Tue, 22 Jun 2021 07:22:35 +0000"  >&lt;blockquote&gt;&lt;p&gt;So if I have a document&lt;br/&gt;
Unknown macro: {a}&lt;br/&gt;
and do db.coll.find({}, {_id: 0, c: 1, b: 1, a: {$add: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;$a&amp;quot;, 1&amp;#93;&lt;/span&gt;}}), the returning document should have a field order of b, c, a (still preserving the order of projection fields)?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This is a good question for &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=arun.banala&quot; class=&quot;user-hover&quot; rel=&quot;arun.banala&quot;&gt;arun.banala&lt;/a&gt;, regarding the expected behaviour for this issue, but your example is exactly how it&apos;s done in&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-54078&quot; title=&quot;[SBE] Improve perf of the bestbuy_agg_merge_wordcount benchmark suite&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-54078&quot;&gt;&lt;del&gt;SERVER-54078&lt;/del&gt;&lt;/a&gt;&#160;(i.e., for the projected fields, respects the order of fields in the source document rather than the order of fields in the query).&lt;/p&gt;</comment>
                            <comment id="3890492" author="JIRAUSER1257640" created="Tue, 22 Jun 2021 07:11:39 +0000"  >&lt;p&gt;So if I have a document &lt;/p&gt;
{a: 1, b: 2, c: 3}
&lt;p&gt; and do db.coll.find({}, {_id: 0, c: 1, b: 1, a: {$add: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;$a&amp;quot;, 1&amp;#93;&lt;/span&gt;}}), the returning document should have a field order of b, c, a (still preserving the order of projection fields)?&lt;/p&gt;</comment>
                            <comment id="3887638" author="JIRAUSER1257640" created="Sun, 20 Jun 2021 20:43:35 +0000"  >&lt;p&gt;We will talk about this in this week&apos;s Triage meeting.&lt;/p&gt;</comment>
                            <comment id="3881981" author="JIRAUSER1257640" created="Wed, 16 Jun 2021 18:13:45 +0000"  >&lt;p&gt;This can address one of the issues that &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mohammad.dashti&quot; class=&quot;user-hover&quot; rel=&quot;mohammad.dashti&quot;&gt;mohammad.dashti&lt;/a&gt;&#160;found in&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-54078&quot; title=&quot;[SBE] Improve perf of the bestbuy_agg_merge_wordcount benchmark suite&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-54078&quot;&gt;&lt;del&gt;SERVER-54078&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
 &#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="1802430">DOCS-14609</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1624923">SERVER-54582</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1602415">SERVER-54078</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 16 Jun 2021 18:13:45 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 18 weeks 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>The change is explained here: &lt;a href=&quot;https://docs.google.com/document/d/1QIgFj_lc0AlH2fPCAi4QdgPhXFGqz--LjpBp4KDff-Q&quot;&gt;https://docs.google.com/document/d/1QIgFj_lc0AlH2fPCAi4QdgPhXFGqz--LjpBp4KDff-Q&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
We might want to reflect this change in our documentation if we already mention field ordering somewhere in the documentation. However, it&amp;#39;s best to avoid having any guarantees for the field ordering, as it might change in the future. As a matter of fact, it&amp;#39;s best to explicitly mention in the documentation that there&amp;#39;s no guarantee for the field ordering and user applications should not depend on it.</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2361</customfieldvalue>
                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 18 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>148.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>arun.banala@mongodb.com</customfieldvalue>
            <customfieldvalue>ethan.zhang@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mohammad.dashti@mongodb.com</customfieldvalue>
            <customfieldvalue>vivian.ge@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzmpj3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr365z:</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="4707">Query Execution 2021-06-28</customfieldvalue>
    <customfieldvalue id="4709">Query Execution 2021-07-12</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16944"><![CDATA[Docs]]></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_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzmbs7:</customfieldvalue>

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