[SERVER-56106] [SBE] $anyElementTrue expression trips tassert with id 4457000 when SBE is on Created: 14/Apr/21  Updated: 29/Oct/23  Resolved: 15/Apr/21

Status: Closed
Project: Core Server
Component/s: Query Execution
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: David Storch Assignee: David Storch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query Execution 2021-04-19
Participants:

 Description   

Reproduce with the following, against a server where SBE is enabled:

db.c.drop();
db.c.insert({});
db.c.aggregate([{$project: {_id: 0, out: {$anyElementTrue: ["$foo"]}}}])



 Comments   
Comment by Githook User [ 15/Apr/21 ]

Author:

{'name': 'David Storch', 'email': 'david.storch@mongodb.com', 'username': 'dstorch'}

Message: SERVER-56106 Prohibit SBE engine if query contains certain agg expressions

This change covers $allElementsTrue, $anyElementTrue,
$isoDayOfWeek, and $log, which were forgotten when the
behavior to fallback to the classic execution engine was
first implemented.
Branch: master
https://github.com/mongodb/mongo/commit/3ae9fdc2db43b1cfcf17dca698a1655ccdcc5427

Comment by David Storch [ 14/Apr/21 ]

The same problem exists for:

  • $allElementsTrue
  • $log
  • $isoDayOfWeek
Generated at Thu Feb 08 05:38:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.