<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:47:03 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>[CSHARP-4048] &quot;Take&quot; doesn&apos;t work with GroupBy.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4048</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;&lt;b&gt;In V3, t&lt;/b&gt;&lt;b&gt;his LINQ query:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Collection&lt;br/&gt;
&#160; &#160;.AsQueryable()&lt;br/&gt;
&#160; &#160;.GroupBy(doc =&amp;gt; doc.Field)&lt;br/&gt;
&#160; &#160;.Select(g =&amp;gt; new { g.Key, Take = g.Take(6) })&lt;br/&gt;
&#160; &#160;.ToList();&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Generates:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;[{ &quot;$group&quot; : &lt;/p&gt;
{ &quot;_id&quot; : &quot;$Field&quot; }
&lt;p&gt; }, { &quot;$project&quot; : { &quot;Key&quot; : &quot;$_id&quot;, &quot;Take&quot; : &lt;/p&gt;
{ &quot;$slice&quot; : [&quot;$$ROOT&quot;, 6] }
&lt;p&gt;, &quot;_id&quot; : 0 } }]&lt;/p&gt;

&lt;p&gt;&lt;b&gt;But fails with:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Command aggregate failed: First argument to $slice must be an array, but is of type: object.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1981777">CSHARP-4048</key>
            <summary>&quot;Take&quot; doesn&apos;t work with GroupBy.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="baris@saydag.com">Baris Saydag</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Feb 2022 07:00:07 +0000</created>
                <updated>Sat, 28 Oct 2023 11:47:21 +0000</updated>
                            <resolved>Thu, 24 Mar 2022 18:46:25 +0000</resolved>
                                    <version>2.14.0</version>
                                    <fixVersion>2.15.1</fixVersion>
                                    <component>LINQ3</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4526523" author="xgen-internal-githook" created="Wed, 4 May 2022 18:12:34 +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-4048&quot; title=&quot;&amp;quot;Take&amp;quot; doesn&amp;#39;t work with GroupBy.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4048&quot;&gt;&lt;del&gt;CSHARP-4048&lt;/del&gt;&lt;/a&gt;: &quot;Take&quot; doesn&apos;t work with GroupBy.&lt;br/&gt;
Branch: v2.15.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/a34ab83fe5c722f8824188546ef1a2d9eb13ca3c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/a34ab83fe5c722f8824188546ef1a2d9eb13ca3c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4526505" author="xgen-internal-githook" created="Wed, 4 May 2022 18:11: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-4048&quot; title=&quot;&amp;quot;Take&amp;quot; doesn&amp;#39;t work with GroupBy.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4048&quot;&gt;&lt;del&gt;CSHARP-4048&lt;/del&gt;&lt;/a&gt;: Test ALL IEnumerable extension methods against IGrouping.&lt;br/&gt;
Branch: v2.15.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/91b54b774ca32c3c1a2dc143c9e98916cfd706c6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/91b54b774ca32c3c1a2dc143c9e98916cfd706c6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4433280" author="xgen-internal-githook" created="Thu, 24 Mar 2022 18:44:56 +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-4048&quot; title=&quot;&amp;quot;Take&amp;quot; doesn&amp;#39;t work with GroupBy.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4048&quot;&gt;&lt;del&gt;CSHARP-4048&lt;/del&gt;&lt;/a&gt;: Test ALL IEnumerable extension methods against IGrouping.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/370c033f1ca9142b89107c7ec651b7186536779e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/370c033f1ca9142b89107c7ec651b7186536779e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4433279" author="xgen-internal-githook" created="Thu, 24 Mar 2022 18:44:54 +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-4048&quot; title=&quot;&amp;quot;Take&amp;quot; doesn&amp;#39;t work with GroupBy.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4048&quot;&gt;&lt;del&gt;CSHARP-4048&lt;/del&gt;&lt;/a&gt;: &quot;Take&quot; doesn&apos;t work with GroupBy.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/6ada045e96666599ff53388bbce392b65485c323&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/6ada045e96666599ff53388bbce392b65485c323&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4350129" author="dmitry.lukyanov" created="Fri, 11 Feb 2022 13:37:23 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=baris%40saydag.com&quot; class=&quot;user-hover&quot; rel=&quot;baris@saydag.com&quot;&gt;baris@saydag.com&lt;/a&gt; , thanks for the report, we will investigate it and come back to you.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CSHARP-3615</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i02zbj:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>