<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:40:26 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-1702] IQueryable - Distinct operation fails following Select</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1702</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;When an integer property of a typed document stored in mongo is selected, and a subsequent distinct operation is performed the following exception occurs:&lt;br/&gt;
Test method MongoInvestigation.Test.UnitTest1.TestMethod1 threw exception: &lt;br/&gt;
System.FormatException: Cannot deserialize a &apos;Int32&apos; from BsonType &apos;Document&apos;.&lt;br/&gt;
    at MongoDB.Driver.Linq.MongoQueryProviderImpl`1.Execute(Expression expression)&lt;br/&gt;
   at MongoDB.Driver.Linq.MongoQueryableImpl`2.GetEnumerator()&lt;br/&gt;
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)&lt;br/&gt;
   at System.Linq.Enumerable.ToArray&lt;span class=&quot;error&quot;&gt;&amp;#91;TSource&amp;#93;&lt;/span&gt;(IEnumerable`1 source)&lt;br/&gt;
   at MongoInvestigation.Test.UnitTest1.&amp;lt;TestMethod1&amp;gt;d__2.MoveNext() in C:\GITProjects\MongoInvestigation\MongoInvestigation.Test\UnitTest1.cs:line 37&lt;br/&gt;
&amp;#8212; End of stack trace from previous location where exception was thrown &amp;#8212;&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()&lt;/p&gt;

&lt;p&gt;Please see attached code demonstrating the failure.&lt;/p&gt;</description>
                <environment>Windows 7</environment>
        <key id="299935">CSHARP-1702</key>
            <summary>IQueryable - Distinct operation fails following Select</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="9">Done</resolution>
                                        <assignee username="craig.wilson@mongodb.com">Craig Wilson</assignee>
                                    <reporter username="andrew_scfc">Andrew Bennett</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Jul 2016 09:46:50 +0000</created>
                <updated>Fri, 23 Sep 2016 19:50:26 +0000</updated>
                            <resolved>Fri, 5 Aug 2016 15:11:26 +0000</resolved>
                                    <version>2.2.4</version>
                                    <fixVersion>2.3</fixVersion>
                                    <component>Linq</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1348526" author="xgen-internal-githook" created="Fri, 5 Aug 2016 15:10:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;craiggwilson&apos;, u&apos;name&apos;: u&apos;Craig Wilson&apos;, u&apos;email&apos;: u&apos;craiggwilson@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1702&quot; title=&quot;IQueryable - Distinct operation fails following Select&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1702&quot;&gt;&lt;del&gt;CSHARP-1702&lt;/del&gt;&lt;/a&gt;: adding support for field projection into Distinct operation across a Where call.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/e446cc9c2e9ec3661d0c48c47d5be25551664ef9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/e446cc9c2e9ec3661d0c48c47d5be25551664ef9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1346979" author="craiggwilson" created="Thu, 4 Aug 2016 12:23:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://mongodbcr.appspot.com/80860001/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mongodbcr.appspot.com/80860001/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="130216" name="DistinctOperation.zip" size="2122822" author="andrew_scfc" created="Mon, 11 Jul 2016 09:46:50 +0000"/>
                    </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hre10f:</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="1189">C# Sprint 40</customfieldvalue>

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