Implement TextIntenderWalker visitor's pre/post/in visit() methods 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

      Goals for this task:

      1. Implement visit(ExpressionEncStrEndsWith*) in our IntentionPreVisitor specialization. 
      2. Implement visit(ExpressionEncStrStartsWith*) in IntentionInVisitorBase.
      3. Implement visit(ExpressionEncStrStartsWith*) in IntentionPostVisitorBase.

      Performing the above items should result in the constant literal value in ExpressionEncStrStartsWith being replaced with the placeholder.

      Testing:

      1. Sanity check test, can we add a test in fle/agg.js or fle/find.js which checks that we can't use $encStrEndsWith  a FLE1 encryption schema?
      2. Expression_analysis_test.cpp: Add test to EvaluatedExpressionsCorrectlyReturnNotEncrypted which checks that new expressions return an unencrypted value (i.e evaluates to bool).
      3. Fle_match_expression_test.cpp: Here we can add unit tests for checking that ExpressionEncStrEndsWith gets replaced with a placeholder by FLEMatchExpression.

      We can add query analysis jstests in a follow-up ticket.

            Assignee:
            Naama Bareket
            Reporter:
            Santiago Roche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: