diff options
author | Jacob Evans <jacob.evans@10gen.com> | 2019-06-03 15:11:09 -0400 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2019-06-06 19:36:28 -0400 |
commit | 29624abb15140d4e57694719be085e6809eb3257 (patch) | |
tree | b568d3237caeb6339dd68a3c8c3ceb8cdcbdcdec | |
parent | caa94f234cbda79605b355b0bd48bfdd4d2b0a0e (diff) | |
download | mongo-29624abb15140d4e57694719be085e6809eb3257.tar.gz |
SERVER-41473 Add ExpressionFieldPath accessor that removes "CURRENT..."
(cherry picked from commit 0189411db2eb9ef6ca4d50f069e04d13b0456445)
-rw-r--r-- | src/mongo/db/pipeline/expression.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/expression.h b/src/mongo/db/pipeline/expression.h index 524f133cad1..706d5bde44a 100644 --- a/src/mongo/db/pipeline/expression.h +++ b/src/mongo/db/pipeline/expression.h @@ -1304,6 +1304,10 @@ public: return _fieldPath; } + auto getFieldPathWithoutCurrentPrefix() const { + return _fieldPath.tail(); + } + ComputedPaths getComputedPaths(const std::string& exprFieldPath, Variables::Id renamingVar) const final; |