[SERVER-73697] Do not split out match expression on meta field when it's not renameable Created: 07/Feb/23 Updated: 29/Oct/23 Resolved: 10/Feb/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 6.0.4, 6.3.0-rc0, 6.2.0-rc6 |
| Fix Version/s: | 7.0.0-rc0, 6.0.5, 6.3.0-rc1 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Yoon Soo Kim | Assignee: | Yoon Soo Kim |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Backport Requested: |
v6.3, v6.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | QE 2023-02-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
The array match expressions such as $elemMatch and $size are not properly pushed down to the timeseries system.buckets collection. I strongly suspect that this is because $elemMatch & $size are array match expressions and splitMatchExpressionBy() function supports only renameable match expressions but the array match expressions are not categorized as "renameable" by hasOnlyRenameableMatchExpressionChildren(). I don't know why splitMatchExpressionBy() supports only renameable match expressions. Note that $jsonSchema-related internal match expressions are also not categorized as "renameable" and I expect that the same issues exists for $jsonSchema expression(s). Some of $jsonSchema-related internal match expressions will be supported by |
| Comments |
| Comment by Githook User [ 21/Feb/23 ] |
|
Author: {'name': 'Yoonsoo Kim', 'email': 'yoonsoo.kim@mongodb.com', 'username': 'yun-soo'}Message: (cherry picked from commit 02eaef3b79524560ff4d651255e1ae3f280f5bcd) |
| Comment by Githook User [ 21/Feb/23 ] |
|
Author: {'name': 'Yoonsoo Kim', 'email': 'yoonsoo.kim@mongodb.com', 'username': 'yun-soo'}Message: (cherry picked from commit 02eaef3b79524560ff4d651255e1ae3f280f5bcd) |
| Comment by Githook User [ 10/Feb/23 ] |
|
Author: {'name': 'Yoonsoo Kim', 'email': 'yoonsoo.kim@mongodb.com', 'username': 'yun-soo'}Message: |