<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:11:02 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-6203] Aggregation operators should have well defined implicit type coercion behavior.</title>
                <link>https://jira.mongodb.org/browse/SERVER-6203</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Some expressions implicitly convert types, but this behavior is not always consistent or clearly documented.&lt;/p&gt;</description>
                <environment></environment>
        <key id="42294">SERVER-6203</key>
            <summary>Aggregation operators should have well defined implicit type coercion behavior.</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-query-execution">Backlog - Query Execution</assignee>
                                    <reporter username="schwerin@mongodb.com">Andy Schwerin</reporter>
                        <labels>
                            <label>expression</label>
                            <label>usability</label>
                    </labels>
                <created>Mon, 25 Jun 2012 13:43:46 +0000</created>
                <updated>Tue, 6 Dec 2022 05:32:07 +0000</updated>
                                            <version>2.1.2</version>
                                                    <component>Aggregation Framework</component>
                                        <votes>11</votes>
                                    <watches>19</watches>
                                                                                                                <comments>
                            <comment id="1829273" author="asya" created="Fri, 9 Mar 2018 19:56:42 +0000"  >&lt;p&gt;The attached table shows the current implicit conversion behaviors.   Top row are types to which conversions can be implicitly attempted.  Example:  any type can be used as conditional in &lt;tt&gt;$cond&lt;/tt&gt; &lt;tt&gt;if:&lt;/tt&gt; expression and it gets coerced to boolean type.  Multiple string expressions (&lt;tt&gt;$substr&lt;/tt&gt;,{$toUpper}, etc) will attempt to coerce a value to string.  All date expressions try to coerce provided date to ISODate type.&lt;/p&gt;


&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/181368/181368_Screenshot+2018-03-09+14.51.01.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;Timestamp() BSON type is omitted from this table but it is generally treated same as ISODate() so anywhere date is expected Timestamp will successfully implicitly convert to date.&lt;/p&gt;</comment>
                            <comment id="1824974" author="david.storch" created="Tue, 6 Mar 2018 19:45:34 +0000"  >&lt;p&gt;Explicit type conversion operators in the aggregation expression language have been implemented as the &lt;tt&gt;$convert&lt;/tt&gt; operator under &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32784&quot; title=&quot;Add $convert with support for typecasting between numeric types&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32784&quot;&gt;&lt;del&gt;SERVER-32784&lt;/del&gt;&lt;/a&gt; and related tickets. Shorthand syntax (&lt;tt&gt;$toInt&lt;/tt&gt;, &lt;tt&gt;$toString&lt;/tt&gt;, and so on) was implemented under &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33510&quot; title=&quot;Add shorthand syntax for $convert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33510&quot;&gt;&lt;del&gt;SERVER-33510&lt;/del&gt;&lt;/a&gt;. These features were merged to the development branch recently, so documentation is not yet available (see &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11386&quot; title=&quot;Add $convert with support for typecasting between numeric types (SERVER-32784)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11386&quot;&gt;&lt;del&gt;DOCS-11386&lt;/del&gt;&lt;/a&gt;, e.g.).&lt;/p&gt;

&lt;p&gt;I&apos;ve narrowed this ticket to be about implicit type coercion behavior in the expression language (rather than about explicit conversion operators). &lt;/p&gt;</comment>
                            <comment id="1807443" author="bond" created="Thu, 15 Feb 2018 21:45:52 +0000"  >&lt;p&gt;Any ETA?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="32452">SERVER-5239</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="42363">SERVER-6206</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="93963">SERVER-11157</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="268645">SERVER-22886</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="65355">SERVER-8582</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="411168">SERVER-30461</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="41650">SERVER-6120</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="42244">SERVER-6197</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="41936">SERVER-6145</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="42052">SERVER-6166</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="181368" name="Screenshot 2018-03-09 14.51.01.png" size="62721" author="asya.kamsky@mongodb.com" created="Fri, 9 Mar 2018 19:51:12 +0000"/>
                    </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="25125"><![CDATA[Query Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 15 Feb 2018 21:45:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 48 weeks, 5 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 48 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-query-execution</customfieldvalue>
            <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>bond</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnyo7:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5924</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_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

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

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