Implement TextSearchPredicate changes for $encStrEndsWith

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • None
    • 3
    • 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
            Reporter:
            Santiago Roche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: