<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:34:51 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>[COMPASS-3977] $round operator not supported in aggregation pipeline builder</title>
                <link>https://jira.mongodb.org/browse/COMPASS-3977</link>
                <project id="13182" key="COMPASS">Compass </project>
                    <description>&lt;p&gt;using mongoDB 4.2.1 and Compass 1.19.12,&#160; I noticed that the $round operator is not working with the aggregation pipeline builder. same . I tried also Compass 1.20 beta 9, same result.&lt;/p&gt;

&lt;p&gt;sample document:&lt;/p&gt;

&lt;p&gt;&#160;{{{&lt;br/&gt;
	&quot;_id&quot; : ObjectId(&quot;5ddbe2272d639f32f2f8cb00&quot;),&lt;br/&gt;
	&quot;bucket&quot; : ISODate(&quot;2019-11-25T14:16:00Z&quot;),&lt;br/&gt;
	&quot;measure&quot; : &quot;SE03_a_RMS_Freq_01&quot;,&lt;br/&gt;
	&quot;path&quot; : &quot;TL1/Z01/HCZ01/KAV01&quot;,&lt;br/&gt;
	&quot;count&quot; : 3,&lt;br/&gt;
    &quot;sum&quot; : 77,&lt;br/&gt;
	&quot;raw&quot; : [&lt;br/&gt;
		&lt;/p&gt;
{
			&quot;ts&quot; : ISODate(&quot;2019-11-25T14:16:07.880Z&quot;),
			&quot;v&quot; : 15,
			&quot;program&quot; : &quot;01&quot;,
			&quot;programBT&quot; : ISODate(&quot;2019-11-25T14:16:00Z&quot;)
		}
&lt;p&gt;,&lt;br/&gt;
		&lt;/p&gt;
{
			&quot;ts&quot; : ISODate(&quot;2019-11-25T14:16:07.883Z&quot;),
			&quot;v&quot; : 23,
			&quot;program&quot; : &quot;01&quot;,
			&quot;programBT&quot; : ISODate(&quot;2019-11-25T14:16:00Z&quot;)
		}
&lt;p&gt;,&lt;/p&gt;
		{
			&quot;ts&quot; : ISODate(&quot;2019-11-25T14:16:07.885Z&quot;),
			&quot;v&quot; : 39,
			&quot;program&quot; : &quot;01&quot;,
			&quot;programBT&quot; : ISODate(&quot;2019-11-25T14:16:00Z&quot;)
		}
&lt;p&gt;	]&lt;br/&gt;
}}}&lt;/p&gt;

&lt;p&gt;example aggregation pipeline (working with mongoshell):&lt;br/&gt;
{{ [{$match: {&lt;br/&gt;
    bucket: &lt;/p&gt;
{
      $gte: ISODate(&apos;2019-11-23T19:11:00.000Z&apos;)
    }
&lt;p&gt;,&lt;br/&gt;
    measure: RegExp(&apos;^SE01&apos;)&lt;br/&gt;
  }}, {$sort: {&lt;br/&gt;
    bucket: -1&lt;br/&gt;
  }}, {$unwind: {&lt;br/&gt;
    path: &apos;$raw&apos;&lt;br/&gt;
  }}, {$group: {&lt;br/&gt;
    _id: &lt;/p&gt;
{
      bucket: &apos;$bucket&apos;,
      measure: &apos;$measure&apos;
    }
&lt;p&gt;,&lt;br/&gt;
    avg: &lt;/p&gt;
{
      $avg : &apos;$raw.v&apos;
    }
&lt;p&gt;,&lt;br/&gt;
    min: &lt;/p&gt;
{
      $min: &apos;$raw.v&apos;
    }
&lt;p&gt;,&lt;br/&gt;
    max: &lt;/p&gt;
{
      $max: &apos;$raw.v&apos;
    }
&lt;p&gt;  }}, {$project: {&lt;br/&gt;
    val : {$round : &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;$avg&amp;#39;,2&amp;#93;&lt;/span&gt;}&lt;br/&gt;
  }}]}}&lt;br/&gt;
&#160;&lt;/p&gt;

&lt;p&gt;error on compass, last projection stage:&lt;br/&gt;
&lt;tt&gt;Expected &quot;[&quot; or AggregationStage but &quot;{&quot; found.&lt;/tt&gt;&lt;/p&gt;</description>
                <environment>MacOs Catalina 10.15.1</environment>
        <key id="1025728">COMPASS-3977</key>
            <summary>$round operator not supported in aggregation pipeline builder</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="13201">Fixed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ilian.gagliardi@mongodb.com">Ilian Gagliardi</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Nov 2019 14:48:40 +0000</created>
                <updated>Sun, 29 Oct 2023 02:40:36 +0000</updated>
                            <resolved>Tue, 17 Mar 2020 21:54:40 +0000</resolved>
                                    <version>1.19.12</version>
                                    <fixVersion>1.22.0</fixVersion>
                                    <component>Aggregation pipeline</component>
                    <component>Grammar</component>
                        <due></due>
                            <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                                                <inwardlinks description="backports">
                                        <issuelink>
            <issuekey id="1978049">COMPASS-5492</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1027670">COMPASS-3980</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="1144738">COMPASS-4146</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>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 11 weeks, 1 day 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>COMPASS-3417</customfieldvalue>
                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 11 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ilian.gagliardi@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hw69zj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvwf3z:</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hw5w8v:</customfieldvalue>

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