From 10df28a8ef8b90ebdf75b20cfd4731d89feda46b Mon Sep 17 00:00:00 2001 From: Charlie Swanson Date: Wed, 6 Jul 2022 22:44:47 +0000 Subject: SERVER-66061 Remove redundant projection in COLUMN_SCAN plans --- src/mongo/db/query/projection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/query/projection.h') diff --git a/src/mongo/db/query/projection.h b/src/mongo/db/query/projection.h index 97b8d1e0d30..d1336db9754 100644 --- a/src/mongo/db/query/projection.h +++ b/src/mongo/db/query/projection.h @@ -93,7 +93,7 @@ public: /** * Return which fields are required to compute the projection, assuming the entire document is - * not needed. + * not needed. Includes _id explicitly if it is required - implicitily or explicitly. */ const OrderedPathSet& getRequiredFields() const { invariant(_type == ProjectType::kInclusion); -- cgit v1.2.1