<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:44:59 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>[COMPASS-6995] Projection expressions appear to be ignored in explain in the latest version of Compass</title>
                <link>https://jira.mongodb.org/browse/COMPASS-6995</link>
                <project id="13182" key="COMPASS">Compass </project>
                    <description>&lt;h3&gt;&lt;a name=&quot;ProblemStatement%2FRationale&quot;&gt;&lt;/a&gt;&lt;b&gt;Problem Statement/Rationale&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;Explain output shows no projection even when an expression is defined in the filter options.&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;StepstoReproduce&quot;&gt;&lt;/a&gt;&lt;b&gt;Steps to Reproduce&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;Create a new collection and insert the following documents:&lt;br/&gt;
[{
&#160; &quot;_id&quot;: &quot;P1&quot;,
&#160; &quot;data&quot;: &quot;P1data&quot;,
&#160; &quot;relatedTo&quot;: &quot;P1&quot;
},
{
&#160; &quot;_id&quot;: &quot;P2&quot;,
&#160; &quot;data&quot;: &quot;P2data&quot;,
&#160; &quot;relatedTo&quot;: &quot;P2&quot;
},
{
&#160; &quot;_id&quot;: &quot;C1&quot;,
&#160; &quot;data&quot;: &quot;C1data&quot;,
&#160; &quot;relatedTo&quot;: [
&#160; &#160; &quot;P1&quot;,
&#160; &#160; &quot;P2&quot;
&#160; ]
},
{
&#160; &quot;_id&quot;: &quot;C2&quot;,
&#160; &quot;data&quot;: &quot;C2data&quot;,
&#160; &quot;relatedTo&quot;: [
&#160; &#160; &quot;P1&quot;,
&#160; &#160; &quot;P2&quot;
&#160; ]
}]&lt;/font&gt;&lt;/p&gt;

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

&lt;p&gt;Create a compound index on {relatedTo:1, data:1}&lt;/p&gt;

&lt;p&gt;Set the following filter expression in Compass:&lt;/p&gt;
{relatedTo:&quot;P1&quot;}

&lt;p&gt;Expand Options and set the following projection expression:&lt;br/&gt;
{_id:0, data:1}&lt;/p&gt;

&lt;p&gt;Hit explain and examine the raw output.&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ExpectedResults&quot;&gt;&lt;/a&gt;&lt;b&gt;Expected Results&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;I would expect the winning plan to be PROJECTION_COVERED and that the projection expression would be shown in the command section of the explain output.&#160;&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ActualResults&quot;&gt;&lt;/a&gt;&lt;b&gt;Actual Results&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;The index is used, but all documents are fetched since the projection expression is missing in the command section of the explain output.&lt;/font&gt;&lt;/p&gt;</description>
                <environment>OS:  Windows 10 Pro&lt;br/&gt;
node.js / npm versions:&lt;br/&gt;
Additional info:&lt;br/&gt;
</environment>
        <key id="2382089">COMPASS-6995</key>
            <summary>Projection expressions appear to be ignored in explain in the latest version of Compass</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="sergey.petushkov@mongodb.com">Sergey Petushkov</assignee>
                                    <reporter username="rick.houlihan@mongodb.com">Rick Houlihan</reporter>
                        <labels>
                    </labels>
                <created>Sat, 1 Jul 2023 23:41:40 +0000</created>
                <updated>Sun, 29 Oct 2023 02:38:18 +0000</updated>
                            <resolved>Wed, 5 Jul 2023 10:21:12 +0000</resolved>
                                    <version>1.38.2</version>
                                    <fixVersion>1.39.0</fixVersion>
                                    <component>Explain</component>
                        <due></due>
                            <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5566348" author="xgen-internal-githook" created="Fri, 14 Jul 2023 11:57:21 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Sergey Petushkov&apos;, &apos;email&apos;: &apos;petushkov.sergey@gmail.com&apos;, &apos;username&apos;: &apos;gribnoysup&apos;}
&lt;p&gt;Message: fix(compass-query-bar): map project to projection before emitting open-explain-plan event &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-6995&quot; title=&quot;Projection expressions appear to be ignored in explain in the latest version of Compass&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-6995&quot;&gt;&lt;del&gt;COMPASS-6995&lt;/del&gt;&lt;/a&gt; (#4615)&lt;/p&gt;

&lt;p&gt;fix(compass-query-bar): map project to projection before emitting open-explain-plan event&lt;br/&gt;
Branch: ga-releases&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/9c1e839a379c1d7525de44084db049cc54c0b292&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/9c1e839a379c1d7525de44084db049cc54c0b292&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5556598" author="xgen-internal-githook" created="Tue, 11 Jul 2023 08:26:26 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Sergey Petushkov&apos;, &apos;email&apos;: &apos;petushkov.sergey@gmail.com&apos;, &apos;username&apos;: &apos;gribnoysup&apos;}
&lt;p&gt;Message: fix(compass-query-bar): map project to projection before emitting open-explain-plan event &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-6995&quot; title=&quot;Projection expressions appear to be ignored in explain in the latest version of Compass&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-6995&quot;&gt;&lt;del&gt;COMPASS-6995&lt;/del&gt;&lt;/a&gt; (#4615)&lt;/p&gt;

&lt;p&gt;fix(compass-query-bar): map project to projection before emitting open-explain-plan event&lt;br/&gt;
Branch: storage-mixin-from-user-preferences&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/9c1e839a379c1d7525de44084db049cc54c0b292&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/9c1e839a379c1d7525de44084db049cc54c0b292&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5554271" author="xgen-internal-githook" created="Mon, 10 Jul 2023 13:38:03 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Sergey Petushkov&apos;, &apos;email&apos;: &apos;petushkov.sergey@gmail.com&apos;, &apos;username&apos;: &apos;gribnoysup&apos;}
&lt;p&gt;Message: fix(compass-query-bar): map project to projection before emitting open-explain-plan event &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-6995&quot; title=&quot;Projection expressions appear to be ignored in explain in the latest version of Compass&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-6995&quot;&gt;&lt;del&gt;COMPASS-6995&lt;/del&gt;&lt;/a&gt; (#4615)&lt;/p&gt;

&lt;p&gt;fix(compass-query-bar): map project to projection before emitting open-explain-plan event&lt;br/&gt;
Branch: beta-releases&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/9c1e839a379c1d7525de44084db049cc54c0b292&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/9c1e839a379c1d7525de44084db049cc54c0b292&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5544152" author="xgen-internal-githook" created="Wed, 5 Jul 2023 12:50:15 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Sergey Petushkov&apos;, &apos;email&apos;: &apos;petushkov.sergey@gmail.com&apos;, &apos;username&apos;: &apos;gribnoysup&apos;}
&lt;p&gt;Message: fix(compass-query-bar): map project to projection before emitting open-explain-plan event &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-6995&quot; title=&quot;Projection expressions appear to be ignored in explain in the latest version of Compass&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-6995&quot;&gt;&lt;del&gt;COMPASS-6995&lt;/del&gt;&lt;/a&gt; (#4615)&lt;/p&gt;

&lt;p&gt;fix(compass-query-bar): map project to projection before emitting open-explain-plan event&lt;br/&gt;
Branch: COMPASS-6979-pass-schema-and-docs-to-ai&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/9c1e839a379c1d7525de44084db049cc54c0b292&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/9c1e839a379c1d7525de44084db049cc54c0b292&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5543831" author="JIRAUSER1257460" created="Wed, 5 Jul 2023 10:22:19 +0000"  >&lt;p&gt;Thanks for the report &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rick.houlihan%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;rick.houlihan@mongodb.com&quot;&gt;rick.houlihan@mongodb.com&lt;/a&gt;! Should be fixed in the next Compass release&lt;/p&gt;</comment>
                            <comment id="5543825" author="xgen-internal-githook" created="Wed, 5 Jul 2023 10:18:34 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Sergey Petushkov&apos;, &apos;email&apos;: &apos;petushkov.sergey@gmail.com&apos;, &apos;username&apos;: &apos;gribnoysup&apos;}
&lt;p&gt;Message: fix(compass-query-bar): map project to projection before emitting open-explain-plan event &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-6995&quot; title=&quot;Projection expressions appear to be ignored in explain in the latest version of Compass&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-6995&quot;&gt;&lt;del&gt;COMPASS-6995&lt;/del&gt;&lt;/a&gt; (#4615)&lt;/p&gt;

&lt;p&gt;fix(compass-query-bar): map project to projection before emitting open-explain-plan event&lt;br/&gt;
Branch: main&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/9c1e839a379c1d7525de44084db049cc54c0b292&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/9c1e839a379c1d7525de44084db049cc54c0b292&lt;/a&gt;&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>Wed, 5 Jul 2023 10:18:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        29 weeks, 5 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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![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>
                            29 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>rick.houlihan@mongodb.com</customfieldvalue>
            <customfieldvalue>sergey.petushkov@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2g8u7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1yj70:</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="7440">Iteration Edmontonia</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|i2fuzj:</customfieldvalue>

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