<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:41:29 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-57300] {$exists:false} on array elements returns incorrect results on MongoDB 5.0</title>
                <link>https://jira.mongodb.org/browse/SERVER-57300</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;MongoDB 5.0 returns incorrect results for queries of the form:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;a.0&quot;: { $exists: false } }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;In MongoDB 4.4 and earlier, this would return documents where the field didn&apos;t contain an array. In MongoDB 5.0, all documents are returned even if the field contains an array.&lt;/p&gt;

&lt;p&gt;Why does this matter? The .NET/C# driver uses this technique in its legacy LINQ implementation to determine whether a field contains a single value or an array - in particular for discriminators. Let&apos;s say we have a class D that derives from C and B. When we insert a document of type D, we will write the discriminator as {{ _t: &lt;span class=&quot;error&quot;&gt;&amp;#91;B,C,D&amp;#93;&lt;/span&gt; }}. If we want to find all B, but not any derived types such as C and D, we will generate the following query:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;_t.0&quot; : { &quot;$exists&quot; : false }, _t : &quot;B&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;When querying MongoDB 4.4 and earlier, we only get documents with &lt;tt&gt;_t: &quot;B&quot;&lt;/tt&gt; back. When querying MongoDB 5.0, we get documents of type B, C, and D back.&lt;/p&gt;

&lt;p&gt;While we can potentially fix this problem in the C# driver by using another technique, it will be a backwards breaking change for existing C# apps that may prevent them from upgrading to MongoDB 5.0.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1761498">SERVER-57300</key>
            <summary>{$exists:false} on array elements returns incorrect results on MongoDB 5.0</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="andrii.dobroshynski@mongodb.com">Andrii Dobroshynski</assignee>
                                    <reporter username="james.kovacs@mongodb.com">James Kovacs</reporter>
                        <labels>
                            <label>post-rc0</label>
                            <label>query</label>
                    </labels>
                <created>Fri, 28 May 2021 22:27:44 +0000</created>
                <updated>Sun, 29 Oct 2023 21:52:54 +0000</updated>
                            <resolved>Thu, 17 Jun 2021 14:49:39 +0000</resolved>
                                    <version>5.0.0-rc0</version>
                                    <fixVersion>5.0.0-rc3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>15</watches>
                                                                                                                <comments>
                            <comment id="3998122" author="xgen-internal-githook" created="Thu, 12 Aug 2021 17:23:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dmitry Lukyanov&apos;, &apos;email&apos;: &apos;dmitry.lukyanov@mongodb.com&apos;, &apos;username&apos;: &apos;DmitryLukyanov&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3704&quot; title=&quot;Temporarily disable tests failing due to SERVER-57300&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3704&quot;&gt;&lt;del&gt;CSHARP-3704&lt;/del&gt;&lt;/a&gt;: Temporarily disable tests failing due to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57300&quot; title=&quot;{$exists:false} on array elements returns incorrect results on MongoDB 5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57300&quot;&gt;&lt;del&gt;SERVER-57300&lt;/del&gt;&lt;/a&gt;. (#601)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/179d34ff8cf1f410396e4ce7753f6bc0ca311f09&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/179d34ff8cf1f410396e4ce7753f6bc0ca311f09&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3885554" author="xgen-internal-githook" created="Thu, 17 Jun 2021 18:21:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Andrii Dobroshynski&apos;, &apos;email&apos;: &apos;andrii.dobroshynski@mongodb.com&apos;, &apos;username&apos;: &apos;dobroshynski&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57300&quot; title=&quot;{$exists:false} on array elements returns incorrect results on MongoDB 5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57300&quot;&gt;&lt;del&gt;SERVER-57300&lt;/del&gt;&lt;/a&gt; Fix logic for detecting numeric path component to avoid executing with SBE&lt;/p&gt;

&lt;p&gt;(cherry picked from commit a6bd767d38ca772b626afd7f90301a9701dda85f)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ddca135c85508646315700bfb112d846756ec1a0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ddca135c85508646315700bfb112d846756ec1a0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3884730" author="xgen-internal-githook" created="Thu, 17 Jun 2021 14:18:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Andrii Dobroshynski&apos;, &apos;email&apos;: &apos;andrii.dobroshynski@mongodb.com&apos;, &apos;username&apos;: &apos;dobroshynski&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57300&quot; title=&quot;{$exists:false} on array elements returns incorrect results on MongoDB 5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57300&quot;&gt;&lt;del&gt;SERVER-57300&lt;/del&gt;&lt;/a&gt; Fix logic for detecting numeric path component to avoid executing with SBE&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a6bd767d38ca772b626afd7f90301a9701dda85f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a6bd767d38ca772b626afd7f90301a9701dda85f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3858980" author="xgen-internal-githook" created="Fri, 4 Jun 2021 01:24:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3704&quot; title=&quot;Temporarily disable tests failing due to SERVER-57300&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3704&quot;&gt;&lt;del&gt;CSHARP-3704&lt;/del&gt;&lt;/a&gt;: Temporarily disable tests failing due to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57300&quot; title=&quot;{$exists:false} on array elements returns incorrect results on MongoDB 5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57300&quot;&gt;&lt;del&gt;SERVER-57300&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: v2.12.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/a2f3800a6b951ed4e7706799a638ff68e20ab8ec&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/a2f3800a6b951ed4e7706799a638ff68e20ab8ec&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3858978" author="xgen-internal-githook" created="Fri, 4 Jun 2021 01:24:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3704&quot; title=&quot;Temporarily disable tests failing due to SERVER-57300&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3704&quot;&gt;&lt;del&gt;CSHARP-3704&lt;/del&gt;&lt;/a&gt;: Temporarily disable tests failing due to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57300&quot; title=&quot;{$exists:false} on array elements returns incorrect results on MongoDB 5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57300&quot;&gt;&lt;del&gt;SERVER-57300&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: v2.12.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/2812be1036107d33fa20f8a7845e6832c7a8e0e6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/2812be1036107d33fa20f8a7845e6832c7a8e0e6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3858912" author="xgen-internal-githook" created="Fri, 4 Jun 2021 00:04:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3704&quot; title=&quot;Temporarily disable tests failing due to SERVER-57300&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3704&quot;&gt;&lt;del&gt;CSHARP-3704&lt;/del&gt;&lt;/a&gt;: Temporarily disable tests failing due to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57300&quot; title=&quot;{$exists:false} on array elements returns incorrect results on MongoDB 5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57300&quot;&gt;&lt;del&gt;SERVER-57300&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/61fa13824c0cc463b8180f76059ef96189d33a4f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/61fa13824c0cc463b8180f76059ef96189d33a4f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3858864" author="xgen-internal-githook" created="Thu, 3 Jun 2021 23:17:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;username&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3704&quot; title=&quot;Temporarily disable tests failing due to SERVER-57300&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3704&quot;&gt;&lt;del&gt;CSHARP-3704&lt;/del&gt;&lt;/a&gt;: Temporarily disable tests failing due to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57300&quot; title=&quot;{$exists:false} on array elements returns incorrect results on MongoDB 5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57300&quot;&gt;&lt;del&gt;SERVER-57300&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/67db5a06835d668380023f7c2265cbe39eadc940&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/67db5a06835d668380023f7c2265cbe39eadc940&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3851346" author="kyle.suarez" created="Tue, 1 Jun 2021 15:21:11 +0000"  >&lt;p&gt;This looks almost certainly like new behavior that is happening due to SBE being turned on by default - sending this to the QE triage queue.&lt;/p&gt;</comment>
                            <comment id="3848684" author="james.kovacs" created="Fri, 28 May 2021 23:05:14 +0000"  >&lt;p&gt;Digging in a bit more, I only get incorrect results from 5.0 when using {{ &quot;a.0&quot;: {$exists:false}}} or {{ &quot;a.0&quot;: {$not: expr}}}. If I use their positive counterparts ({{ &quot;a.0&quot;: {$exists:true}}} or {{ &quot;a.0&quot;: expr}}), I get the expected results.&lt;/p&gt;</comment>
                            <comment id="3848677" author="james.kovacs" created="Fri, 28 May 2021 22:49:34 +0000"  >&lt;p&gt;Found another example, probably the same root cause:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.people.insert({a:[&quot;Tom&quot;,&quot;Dick&quot;,&quot;Harry&quot;]})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.people.find({&quot;a.0&quot;: {$not: /^T/}})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;4.4 returns no results (as expected). 5.0 returns the inserted document.&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">
                                        <issuelink>
            <issuekey id="1767705">CSHARP-3704</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="1756361">CSHARP-3687</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>10.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="21777"><![CDATA[v5.0]]></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>Tue, 1 Jun 2021 15:21:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 25 weeks, 6 days 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, 25 weeks, 6 days ago
                        </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>andrii.dobroshynski@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>james.kovacs@mongodb.com</customfieldvalue>
            <customfieldvalue>kyle.suarez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hziht3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hz353z:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4705">Query Execution 2021-06-14</customfieldvalue>
    <customfieldvalue id="4707">Query Execution 2021-06-28</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Insert the following documents into a collection:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.arrays.insert({a:1})        // integer&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.arrays.insert({a:[1]})     // array with 1 element&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.arrays.insert({a:[1,2]})  // array with 2 elements&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;With MongoDB 4.4.5:&lt;br/&gt;
&lt;tt&gt;db.arrays.find({&quot;a.0&quot;: {$exists: false&lt;/tt&gt;)}} returns 1 document&lt;br/&gt;
&lt;tt&gt;db.arrays.find({&quot;a.1&quot;: {$exists: false&lt;/tt&gt;)}} returns 2 documents&lt;br/&gt;
&lt;tt&gt;db.arrays.find({&quot;a.2&quot;: {$exists: false&lt;/tt&gt;)}} returns 3 documents&lt;/p&gt;

&lt;p&gt;With MongoDB 5.0.0-alpha0-584-g325ff69:&lt;br/&gt;
&lt;tt&gt;db.arrays.find({&quot;a.0&quot;: {$exists: false&lt;/tt&gt;)}} returns 3 documents&lt;br/&gt;
&lt;tt&gt;db.arrays.find({&quot;a.1&quot;: {$exists: false&lt;/tt&gt;)}} returns 3 documents&lt;br/&gt;
&lt;tt&gt;db.arrays.find({&quot;a.2&quot;: {$exists: false&lt;/tt&gt;)}} returns 3 documents&lt;/p&gt;
</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|hzi427:</customfieldvalue>

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