<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:55:01 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-84438] Improve rewrites of filters on time-series as bucket-level predicates</title>
                <link>https://jira.mongodb.org/browse/SERVER-84438</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;For &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-84130&quot; title=&quot;Incorrect bucket-level filter optimization when some events in the bucket are missing the field&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-84130&quot;&gt;&lt;del&gt;SERVER-84130&lt;/del&gt;&lt;/a&gt; we had to remove the bucket-level filter with internal LT(E) comparisons. While required for query correctness, the check could be more narrow, for example, in a conjunction with GT(E) it would be still correct to use the LT(E) optimization as the GT(E) would cut off the problematic events with the missing field.&lt;/p&gt;

&lt;p&gt;In general, the rewrites of predicates at bucket level might benefit from a more systemic review &amp;amp; refactor &amp;#8211; we&apos;ve seen a few post-release bugs immediately in the area: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-79585&quot; title=&quot;A valid $match query fails on time-series collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-79585&quot;&gt;&lt;del&gt;SERVER-79585&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-84130&quot; title=&quot;Incorrect bucket-level filter optimization when some events in the bucket are missing the field&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-84130&quot;&gt;&lt;del&gt;SERVER-84130&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-84207&quot; title=&quot;Comparisons on timeField in time-series could sometimes be optimized away&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-84207&quot;&gt;&lt;del&gt;SERVER-84207&lt;/del&gt;&lt;/a&gt;, as well as in integration with other pipeline optimizations: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-79692&quot; title=&quot;Duplicated predicates pushed down into collection access for $match over time-series&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-79692&quot;&gt;SERVER-79692&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-79637&quot; title=&quot;Incorrect query results in $lookup with TS foreign collection using a correlated predicate&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-79637&quot;&gt;&lt;del&gt;SERVER-79637&lt;/del&gt;&lt;/a&gt;. The code is complex and the logic is spread across multiple helper functions with numerous arguments (~10) in multiple files. The entry point is around createPredicatesOnBucketLevelField().&lt;/p&gt;
</description>
                <environment></environment>
        <key id="2533654">SERVER-84438</key>
            <summary>Improve rewrites of filters on time-series as bucket-level predicates</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-integration">Backlog - Query Integration</assignee>
                                    <reporter username="irina.yatsenko@mongodb.com">Irina Yatsenko</reporter>
                        <labels>
                            <label>qi-tech-debt</label>
                            <label>qi-timeseries</label>
                    </labels>
                <created>Thu, 28 Dec 2023 17:03:00 +0000</created>
                <updated>Fri, 5 Jan 2024 02:25:00 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                        <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_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25467"><![CDATA[Query Integration]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 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>ted.tuckman@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-query-integration</customfieldvalue>
            <customfieldvalue>irina.yatsenko@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i364pj:</customfieldvalue>

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

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