Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-101216

Implement TextSearchPredicate changes for $encStrEndsWith

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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). 

            Assignee:
            erin.zhu@mongodb.com Erin Zhu
            Reporter:
            santiago.roche@mongodb.com Santiago Roche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None