<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:48:43 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-4596] LINQ error in  v2.19.1</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4596</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;&lt;em&gt;When running the following LINQ query in C# driver v2.19.1 the following error is returned. This used to work in v2.19.0&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;em&gt;&amp;gt; MongoDB.Driver.Linq.ExpressionNotSupportedException: &apos;Expression not supported: 5 in (Convert(record.DateTimeUtc.Subtract(5/03/2023 6:03:13 AM, millisecond), Double) / 5) because it was not possible to determine how to serialize the constant.&apos;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;b&gt;&lt;em&gt;The query&lt;/em&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;```csharp&lt;/em&gt;&lt;br/&gt;
var result = collection&lt;br/&gt;
&#160; &#160; .AsQueryable()&lt;br/&gt;
&#160; &#160; .Select(record =&amp;gt; record.DateTimeUtc.Subtract(startTime, DateTimeUnit.Millisecond) / (double)5)&lt;br/&gt;
&#160; &#160; .ToList();&lt;br/&gt;
&lt;em&gt;```&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Environment&quot;&gt;&lt;/a&gt;Environment&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;C# Driver 2.19.1&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Windows 11 64-bit x86&lt;/em&gt;&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;&lt;em&gt;Run above query in version 2.19.1&lt;/em&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2305862">CSHARP-4596</key>
            <summary>LINQ error in  v2.19.1</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="3">Duplicate</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="wassimk@vypex.com">Wassim Khalil</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Apr 2023 06:12:41 +0000</created>
                <updated>Thu, 14 Sep 2023 23:17:17 +0000</updated>
                            <resolved>Thu, 14 Sep 2023 23:17:17 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5705868" author="rstam" created="Thu, 14 Sep 2023 23:17:04 +0000"  >&lt;p&gt;This ticket is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4566&quot; title=&quot;Matching on char? throws an ExpressionNotSupportedException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4566&quot;&gt;CSHARP-4566&lt;/a&gt; because it&apos;s just another example of an issue with numeric conversions (just that different types are involved in this ticket than in &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4566&quot; title=&quot;Matching on char? throws an ExpressionNotSupportedException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4566&quot;&gt;CSHARP-4566&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;I have verified that the changes for &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4566&quot; title=&quot;Matching on char? throws an ExpressionNotSupportedException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4566&quot;&gt;CSHARP-4566&lt;/a&gt; address this issue also.&lt;/p&gt;</comment>
                            <comment id="5510925" author="JIRAUSER1272042" created="Tue, 20 Jun 2023 08:57:48 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=robert%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;robert@mongodb.com&quot;&gt;robert@mongodb.com&lt;/a&gt;, can you please provide an update on this. It&apos;s still broken in the latest version.&lt;/p&gt;</comment>
                            <comment id="5325071" author="rstam" created="Tue, 4 Apr 2023 23:33:00 +0000"  >&lt;p&gt;Thank you for reporting this issue. I am sorry that you are affected by it.&lt;/p&gt;

&lt;p&gt;I am researching how to fix it.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2286346">CSHARP-4566</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_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|i1ljco:</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>