<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:56: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>[SERVER-63017] Fix SBE translation of variadic expressions for zero argument case</title>
                <link>https://jira.mongodb.org/browse/SERVER-63017</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Recently, two bugs were found by the fuzzer (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63008&quot; title=&quot;[SBE] $concatArrays implementation should account for 0 children &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63008&quot;&gt;&lt;del&gt;SERVER-63008&lt;/del&gt;&lt;/a&gt; and&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63012&quot; title=&quot;Initialize $add with no operands to zero when translating to SBE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63012&quot;&gt;&lt;del&gt;SERVER-63012&lt;/del&gt;&lt;/a&gt;) where SBE translation of certain variadic expressions did not account for the 0 child case. (presumably, because when optimization is enabled, the expression gets optimized away and never gets pushed down to SBE). This ticket fixes the remaining variadic expression SBE translations that suffer from this same bug.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1971610">SERVER-63017</key>
            <summary>Fix SBE translation of variadic expressions for zero argument case</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="irina.yatsenko@mongodb.com">Irina Yatsenko</assignee>
                                    <reporter username="mihai.andrei@mongodb.com">Mihai Andrei</reporter>
                        <labels>
                            <label>greenerbuild</label>
                    </labels>
                <created>Wed, 26 Jan 2022 18:32:58 +0000</created>
                <updated>Sun, 29 Oct 2023 21:43:34 +0000</updated>
                            <resolved>Fri, 28 Jan 2022 14:39:05 +0000</resolved>
                                    <version>Backlog</version>
                                    <fixVersion>5.3.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="4329403" author="xgen-internal-githook" created="Wed, 2 Feb 2022 02:08:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Irina Yatsenko&apos;, &apos;email&apos;: &apos;irina.yatsenko@mongodb.com&apos;, &apos;username&apos;: &apos;IrinaYatsenko&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63017&quot; title=&quot;Fix SBE translation of variadic expressions for zero argument case&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63017&quot;&gt;&lt;del&gt;SERVER-63017&lt;/del&gt;&lt;/a&gt; Handle no arguments case in un-optimized agg operators&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 59e5b09e6840c5d00fbc961f812d66a00f823938)&lt;br/&gt;
Branch: v5.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/207b1091cf43c3abcc30267cde3905b4fd63fca2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/207b1091cf43c3abcc30267cde3905b4fd63fca2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4320929" author="mihai.andrei" created="Fri, 28 Jan 2022 14:38:38 +0000"  >&lt;p&gt;Sure; I&apos;ll close this one and file a follow up.&lt;/p&gt;

&lt;p&gt;Filed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63080&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-63080&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4319695" author="kyle.suarez" created="Thu, 27 Jan 2022 22:02:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=irina.yatsenko&quot; class=&quot;user-hover&quot; rel=&quot;irina.yatsenko&quot;&gt;irina.yatsenko&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mihai.andrei&quot; class=&quot;user-hover&quot; rel=&quot;mihai.andrei&quot;&gt;mihai.andrei&lt;/a&gt;, from a ticket maintenance standpoint &amp;#8211; I would like to close this ticket and give it an appropriate fix version, given that Irina has committed something to master. If there is follow-on work, we can track it separately by filing a follow-up ticket. Does that sound acceptable?&lt;/p&gt;</comment>
                            <comment id="4319479" author="JIRAUSER1259274" created="Thu, 27 Jan 2022 20:45:27 +0000"  >&lt;p&gt;Per discussion with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mihai.andrei&quot; class=&quot;user-hover&quot; rel=&quot;mihai.andrei&quot;&gt;mihai.andrei&lt;/a&gt; keeping the ticket open to investigate if any more hardening is needed in the SBE expression translators (and/or more test coverage).&lt;/p&gt;</comment>
                            <comment id="4319425" author="xgen-internal-githook" created="Thu, 27 Jan 2022 20:28:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Irina Yatsenko&apos;, &apos;email&apos;: &apos;irina.yatsenko@mongodb.com&apos;, &apos;username&apos;: &apos;IrinaYatsenko&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63017&quot; title=&quot;Fix SBE translation of variadic expressions for zero argument case&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63017&quot;&gt;&lt;del&gt;SERVER-63017&lt;/del&gt;&lt;/a&gt; Handle no arguments case in un-optimized agg operators&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/59e5b09e6840c5d00fbc961f812d66a00f823938&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/59e5b09e6840c5d00fbc961f812d66a00f823938&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4317141" author="JIRAUSER1259274" created="Wed, 26 Jan 2022 23:42:01 +0000"  >&lt;p&gt;I&apos;ve looked through publicly documented Aggregation Pipeline Operators (&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/aggregation&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/operator/aggregation&lt;/a&gt;) for those that have signature of {$op:{ $setEquals: [ &amp;lt;expression1&amp;gt;, &amp;lt;expression2&amp;gt;, ... ] }} and found the following:&lt;/p&gt;

&lt;p&gt;$and, $or handle no args with default values of true/false respectively.&lt;br/&gt;
$setEquals fails the query with &quot;$setEquals needs at least two arguments had: 0&quot;&lt;/p&gt;

&lt;p&gt;$add, $concat, $concatArrays, $multiply, $setIntersection, $setUnion &amp;#8211; fail with the server invariant&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63012&quot; title=&quot;Initialize $add with no operands to zero when translating to SBE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63012&quot;&gt;&lt;del&gt;SERVER-63012&lt;/del&gt;&lt;/a&gt; addresses $add&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63008&quot; title=&quot;[SBE] $concatArrays implementation should account for 0 children &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63008&quot;&gt;&lt;del&gt;SERVER-63008&lt;/del&gt;&lt;/a&gt; addresses $concatArrays&lt;/p&gt;

&lt;p&gt;Note: the public documentation for $setUnion and $setIntersection says &quot;Takes two or more arrays and returns an array that contains the elements that appear in every input array.&quot; but both return an empty set when optimizations are enabled. Similarly, the public documentation for $and/$or requires at least one argument but we actually handle zero. Should the docs be updated?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1971370">SERVER-63008</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1971497">SERVER-63012</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22676"><![CDATA[v5.2]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 26 Jan 2022 23:42:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 1 week, 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></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, 1 week, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>185.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>irina.yatsenko@mongodb.com</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
            <customfieldvalue>mihai.andrei@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0i6an:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i019qf:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </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|i0hsfz:</customfieldvalue>

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