<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:40:24 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>[SERVER-79226] Accuracy differences in geoNear aggregation between mongod 5.0 and 6.0</title>
                <link>https://jira.mongodb.org/browse/SERVER-79226</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The results of geoNear example are different on mongo 5.0 and 6.0.&lt;/p&gt;

&lt;p&gt;9.539931676365992 against 9.539931674131209&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/operator/aggregation/geoNear/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/docs/manual/reference/operator/aggregation/geoNear/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Therefore, some unit test failed.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/master/driver-core/src/test/functional/com/mongodb/client/model/AggregatesTest.java#L237&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/blob/master/driver-core/src/test/functional/com/mongodb/client/model/AggregatesTest.java#L237&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Result of mongo 5.0.17:&lt;/p&gt;

&lt;p&gt;[{&quot;_id&quot;: 2, &quot;name&quot;: &quot;Sara D. Roosevelt Park&quot;, &quot;category&quot;: &quot;Parks&quot;, &quot;location&quot;: &lt;/p&gt;
{&quot;type&quot;: &quot;Point&quot;, &quot;coordinates&quot;: [-73.9928, 40.7193]}
&lt;p&gt;, &quot;dist&quot;: {&quot;calculated&quot;: 9.539931676365992, &quot;location&quot;: &lt;/p&gt;
{&quot;type&quot;: &quot;Point&quot;, &quot;coordinates&quot;: [-73.9928, 40.7193]}
&lt;p&gt;}}]&lt;/p&gt;

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

&lt;p&gt;Result of mongo 6.0.8:&lt;/p&gt;

&lt;p&gt;[{&quot;_id&quot;: 2, &quot;name&quot;: &quot;Sara D. Roosevelt Park&quot;, &quot;location&quot;: &lt;/p&gt;
{&quot;type&quot;: &quot;Point&quot;, &quot;coordinates&quot;: [-73.9928, 40.7193]}
&lt;p&gt;, &quot;category&quot;: &quot;Parks&quot;, &quot;dist&quot;: {&quot;calculated&quot;: 9.539931674131209, &quot;location&quot;: &lt;/p&gt;
{&quot;type&quot;: &quot;Point&quot;, &quot;coordinates&quot;: [-73.9928, 40.7193]}
&lt;p&gt;}}]&lt;/p&gt;</description>
                <environment></environment>
        <key id="2398649">SERVER-79226</key>
            <summary>Accuracy differences in geoNear aggregation between mongod 5.0 and 6.0</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="3">Duplicate</resolution>
                                        <assignee username="backlog-server-triage">Backlog - Triage Team</assignee>
                                    <reporter username="lzy@luozy.cn">&#32599;&#38663;&#23431; N/A</reporter>
                        <labels>
                    </labels>
                <created>Sat, 22 Jul 2023 21:07:57 +0000</created>
                <updated>Thu, 2 Nov 2023 13:25:20 +0000</updated>
                            <resolved>Thu, 2 Nov 2023 13:25:20 +0000</resolved>
                                    <version>6.0.8</version>
                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5849268" author="JIRAUSER1257066" created="Thu, 2 Nov 2023 13:25:20 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lzy%40luozy.cn&quot; class=&quot;user-hover&quot; rel=&quot;lzy@luozy.cn&quot;&gt;lzy@luozy.cn&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for your report and your patience on this issue. I also appreciate the details that you&apos;ve provided. After further investigation, it appears this ticket duplicates &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74983&quot; title=&quot;Divergence in sin/cos functions across platforms can result in different 2dsphere index keys for Geo Points&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74983&quot;&gt;&lt;del&gt;SERVER-74983&lt;/del&gt;&lt;/a&gt;, where a difference in platforms may introduce a difference in trig implementations and results.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-5097&quot; title=&quot;Re-write AggregatesTest#testGeoNear to pass on all platforms&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-5097&quot;&gt;&lt;del&gt;JAVA-5097&lt;/del&gt;&lt;/a&gt; decreases the number of significant figures to 4 to prevent the test failure you pointed to in your description.&lt;/p&gt;

&lt;p&gt;I&apos;ve closed this ticket as a duplicate to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74983&quot; title=&quot;Divergence in sin/cos functions across platforms can result in different 2dsphere index keys for Geo Points&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74983&quot;&gt;&lt;del&gt;SERVER-74983&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Edwin&lt;/p&gt;</comment>
                            <comment id="5588855" author="JIRAUSER1274501" created="Tue, 25 Jul 2023 08:15:27 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=yuan.fang%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;yuan.fang@mongodb.com&quot;&gt;yuan.fang@mongodb.com&lt;/a&gt; Just use the example in MongoDB document.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/operator/aggregation/geoNear/#-geonear--aggregation-&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/docs/manual/reference/operator/aggregation/geoNear/#-geonear--aggregation-&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;Reproduce&quot;&gt;&lt;/a&gt;Reproduce&lt;/h3&gt;

&lt;p&gt;db.places.insertMany( [&lt;br/&gt;
&#160; &#160;&lt;/p&gt;
{
&#160; &#160; &#160; name: &quot;Central Park&quot;,
&#160; &#160; &#160; location: \{ type: &quot;Point&quot;, coordinates: [ -73.97, 40.77 ] }
&lt;p&gt;,&lt;br/&gt;
&#160; &#160; &#160; category: &quot;Parks&quot;&lt;br/&gt;
&#160; &#160;},&lt;br/&gt;
&#160; &#160;&lt;/p&gt;
{
&#160; &#160; &#160; name: &quot;Sara D. Roosevelt Park&quot;,
&#160; &#160; &#160; location: \{ type: &quot;Point&quot;, coordinates: [ -73.9928, 40.7193 ] }
&lt;p&gt;,&lt;br/&gt;
&#160; &#160; &#160; category: &quot;Parks&quot;&lt;br/&gt;
&#160; &#160;},&lt;br/&gt;
&#160; &#160;&lt;/p&gt;
{
&#160; &#160; &#160; name: &quot;Polo Grounds&quot;,
&#160; &#160; &#160; location: \{ type: &quot;Point&quot;, coordinates: [ -73.9375, 40.8303 ] }
&lt;p&gt;,&lt;br/&gt;
&#160; &#160; &#160; category: &quot;Stadiums&quot;&lt;br/&gt;
&#160; &#160;}&lt;br/&gt;
] )&lt;/p&gt;

&lt;p&gt;db.places.createIndex( { location: &quot;2dsphere&quot; } )&lt;/p&gt;

&lt;p&gt;db.places.aggregate([&lt;br/&gt;
&#160; &#160;{&lt;br/&gt;
&#160; &#160; &#160;$geoNear: &lt;/p&gt;
{
&#160; &#160; &#160; &#160; near: \{ type: &quot;Point&quot;, coordinates: [ -73.99279 , 40.719296 ] }
&lt;p&gt;,&lt;br/&gt;
&#160; &#160; &#160; &#160; distanceField: &quot;dist.calculated&quot;,&lt;br/&gt;
&#160; &#160; &#160; &#160; maxDistance: 2,&lt;br/&gt;
&#160; &#160; &#160; &#160; query: { category: &quot;Parks&quot; },&lt;br/&gt;
&#160; &#160; &#160; &#160; includeLocs: &quot;dist.location&quot;,&lt;br/&gt;
&#160; &#160; &#160; &#160; spherical: true&lt;br/&gt;
&#160; &#160; &#160;}&lt;br/&gt;
&#160; &#160;}&lt;br/&gt;
])&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;MongoDB5.0.17&quot;&gt;&lt;/a&gt;MongoDB 5.0.17&lt;/h3&gt;

&lt;p&gt;[&lt;/p&gt;

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

&lt;p&gt;&#160; &#160; _id: ObjectId(&quot;64bf846fb1c9448e80a6cece&quot;),&lt;/p&gt;

&lt;p&gt;&#160; &#160; name: &apos;Sara D. Roosevelt Park&apos;,&lt;/p&gt;

&lt;p&gt;&#160; &#160; location: &lt;/p&gt;
{ type: &apos;Point&apos;, coordinates: [ -73.9928, 40.7193 ] }
&lt;p&gt;,&lt;/p&gt;

&lt;p&gt;&#160; &#160; category: &apos;Parks&apos;,&lt;/p&gt;

&lt;p&gt;&#160; &#160; dist: {&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; calculated: 0.9539931676365992,&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; location: &lt;/p&gt;
{ type: &apos;Point&apos;, coordinates: [ -73.9928, 40.7193 ] }

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

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

&lt;p&gt;]&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;MongoDB6.0.8&quot;&gt;&lt;/a&gt;MongoDB 6.0.8&lt;/h3&gt;

&lt;p&gt;[&lt;/p&gt;

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

&lt;p&gt;&#160; &#160; _id: ObjectId(&quot;64bf838e534317ffa0f4f161&quot;),&lt;/p&gt;

&lt;p&gt;&#160; &#160; name: &apos;Sara D. Roosevelt Park&apos;,&lt;/p&gt;

&lt;p&gt;&#160; &#160; location: &lt;/p&gt;
{ type: &apos;Point&apos;, coordinates: [ -73.9928, 40.7193 ] }
&lt;p&gt;,&lt;/p&gt;

&lt;p&gt;&#160; &#160; category: &apos;Parks&apos;,&lt;/p&gt;

&lt;p&gt;&#160; &#160; dist: {&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; calculated: 0.9539931674131209,&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; location: &lt;/p&gt;
{ type: &apos;Point&apos;, coordinates: [ -73.9928, 40.7193 ] }

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

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

&lt;p&gt;]&lt;/p&gt;</comment>
                            <comment id="5587924" author="JIRAUSER1270794" created="Mon, 24 Jul 2023 21:22:04 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lzy%40luozy.cn&quot; class=&quot;user-hover&quot; rel=&quot;lzy@luozy.cn&quot;&gt;lzy@luozy.cn&lt;/a&gt; ,&lt;/p&gt;

&lt;p&gt;Thank you for your report. I understand that you have noticed inconsistent results with the &lt;tt&gt;$geoNear&lt;/tt&gt; aggregation in versions v5.0.x and v6.0.8.&#160; Could you provide more information to help us in reproducing the issue?&#160; Specifically, we would appreciate it if you could provide the following:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The aggregation pipeline that you used.&lt;/li&gt;
	&lt;li&gt;An example of datasets on which you applied the mentioned pipeline.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Regards,&lt;br/&gt;
Yuan&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2291008">SERVER-74983</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25137"><![CDATA[Server Triage]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 24 Jul 2023 21:22:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 weeks, 6 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_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>edwin.zhou@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-triage</customfieldvalue>
            <customfieldvalue>edwin.zhou@mongodb.com</customfieldvalue>
            <customfieldvalue>yuan.fang@mongodb.com</customfieldvalue>
            <customfieldvalue>lzy@luozy.cn</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2j307:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i217mg:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[yuan.fang@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2ip5j:</customfieldvalue>

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