Skip to content

Commit 134fca1

Browse files
pdan101Evergreen Agent
authored andcommitted
SERVER-51563 Reverted SBE compatibility for $trim to incompatible
1 parent c53b81d commit 134fca1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mongo/db/pipeline/expression.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3619,7 +3619,9 @@ class ExpressionTrim final : public Expression {
36193619
boost::intrusive_ptr<Expression> charactersToTrim)
36203620
: Expression(expCtx, {std::move(input), std::move(charactersToTrim)}),
36213621
_trimType(trimType),
3622-
_name(name.toString()) {}
3622+
_name(name.toString()) {
3623+
expCtx->sbeCompatibility = SbeCompatibility::notCompatible;
3624+
}
36233625

36243626
Value evaluate(const Document& root, Variables* variables) const final;
36253627
boost::intrusive_ptr<Expression> optimize() final;

0 commit comments

Comments
 (0)