<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:49:50 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-4937] LINQ3: CompareTo throws ExpressionNotSupportedException with IComparable&lt;T&gt; interface</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4937</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;Using the V3 LINQ provider, CompareTo throws an `ExpressionNotSupportedException` when item being compared to is behind the `IComparable&amp;lt;T&amp;gt;` interface. This same query worked without issue in V2.&lt;/p&gt;

&lt;p&gt;Full error stack trace:&lt;/p&gt;


&lt;p&gt;&lt;tt&gt;Expression not supported: Convert(x, IIdentity`1).Id.CompareTo(782d1a42-d790-4020-8dba-5e2564d1a164).&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.MethodTranslators.CompareToMethodToAggregationExpressionTranslator.Translate(TranslationContext context, MethodCallExpression expression)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.MethodCallExpressionToAggregationExpressionTranslator.Translate(TranslationContext context, MethodCallExpression expression)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.ExpressionToAggregationExpressionTranslator.Translate(TranslationContext context, Expression expression)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.BinaryExpressionToAggregationExpressionTranslator.Translate(TranslationContext context, BinaryExpression expression)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.ExpressionToAggregationExpressionTranslator.Translate(TranslationContext context, Expression expression)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToFilterTranslators.ExpressionToFilterTranslator.TranslateUsingAggregationOperators(TranslationContext context, Expression expression)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToFilterTranslators.ExpressionToFilterTranslator.Translate(TranslationContext context, Expression expression, Boolean exprOk)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToFilterTranslators.ExpressionToFilterTranslator.TranslateLambda(TranslationContext context, LambdaExpression lambdaExpression, IBsonSerializer parameterSerializer, Boolean asRoot)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToPipelineTranslators.WhereMethodToPipelineTranslator.Translate(TranslationContext context, MethodCallExpression expression)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToPipelineTranslators.ExpressionToPipelineTranslator.Translate(TranslationContext context, Expression expression)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToExecutableQueryTranslators.ExpressionToExecutableQueryTranslator.Translate&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument,TOutput&amp;#93;&lt;/span&gt;(MongoQueryProvider`1 provider, Expression expression)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.Linq.Linq3Implementation.MongoQuery`2.ToCursorAsync(CancellationToken cancellationToken)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDB.Driver.IAsyncCursorSourceExtensions.ToListAsync&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument&amp;#93;&lt;/span&gt;(IAsyncCursorSource`1 source, CancellationToken cancellationToken)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDbCompareToSample.Repository`2.GetAfter(TId cursor) in MongoDbCompareToSample/MongoDbCompareToSample/Repository.cs:line 24&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at MongoDbCompareToSample.Tests.UnitTest1.CompareToWorks(LinqProvider linqProvider) in MongoDbCompareToSample/MongoDbCompareToSample.Tests/RepositoryTests.cs:line 24&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at Xunit.Sdk.TestInvoker`1.&amp;lt;&amp;gt;c_&lt;em&gt;DisplayClass48_0.&amp;lt;&amp;lt;InvokeTestMethodAsync&amp;gt;b&lt;/em&gt;&lt;em&gt;1&amp;gt;d.MoveNext() in /&lt;/em&gt;/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 264&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#8212; End of stack trace from previous location &#8212;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in /_/src/xunit.execution/Sdk/Frameworks/ExecutionTimer.cs:line 48&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160;at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in /_/src/xunit.core/Sdk/ExceptionAggregator.cs:line 90&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Pleaseprovidetheversionofthedriver.Ifapplicable%2CpleaseprovidetheMongoDBserverversionandtopology%28standalone%2Creplicaset%2Corshardedcluster%29.&quot;&gt;&lt;/a&gt;Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).&lt;/h4&gt;

&lt;p&gt;2.23.1&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;

&lt;p&gt;Fully reproducible example can be found &lt;a href=&quot;https://github.com/folkcoder/MongoDbCompareToSample&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2554335">CSHARP-4937</key>
            <summary>LINQ3: CompareTo throws ExpressionNotSupportedException with IComparable&lt;T&gt; interface</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="steve@stanzak.solutions">Steve Stanzak</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Jan 2024 16:05:46 +0000</created>
                <updated>Tue, 6 Feb 2024 17:54:58 +0000</updated>
                            <resolved>Tue, 6 Feb 2024 17:54:58 +0000</resolved>
                                                    <fixVersion>2.24.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="6034714" author="dbeng-pm-bot" created="Tue, 23 Jan 2024 16:05:49 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=steve%40stanzak.solutions&quot; class=&quot;user-hover&quot; rel=&quot;steve@stanzak.solutions&quot;&gt;steve@stanzak.solutions&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26434"><![CDATA[Dotnet Drivers]]></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_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_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1. What would you like to communicate to the user about this feature?&lt;br/&gt;
2. Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3. Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

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