-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
None
-
None
-
None
-
None
-
None
-
None
-
None
As part of this ticket, modify TextSearchPredicate to support $encStrEndsWith.
End to end testing will not be done as part of this ticket.
Goals for this task:
- Leave stub for TextSearchPredicate::generateTags(). generateTags() will be implemented in a follow-up item once FLE2FindTextPayload is delivered.
- Register TextSearchPredicate as the rewriter for ExpressionEncStrEndsWith
- Make sure match expression methods of TextSearchPredicate throw an error, since match expressions for $encStrEndsWith are not supported, only aggregate expressions versions are supported.
Testing:
- Take a look at the way unit testing was done for other predicates in query_rewriter_test.cpp. We will follow a similar approach, which should allow us to unit test everything except generateTags(). generateTags() will be tested as part of the end to end testing effort.
- Make sure we add unit tests which ensure we don't rewrite the expression when we force a collection scan (look at
EqualityPredicateCollScanRewriteTest).
- depends on
-
SERVER-101126 Implement TextSearchPredicate for $encStrStartsWith
-
- Closed
-
- is related to
-
SERVER-101843 Implement unit tests for $encStrEndsWith in text_search_predicate_test.cpp with find payloads
-
- Open
-