The goal for this task is to modify buildEncryptPlaceholder and buildFle2EncryptPlaceholder so that it generates the correct BinData payload placeholder based on the provided encrypted text search expression.
buildEncryptPlaceholder accepts a EncryptionPlaceholderContext enum as an argument, which we will use as a way to communicate the encrypted text operator for which we are generating the placeholder. Depending on which operator we are building the placeholder for, we will generate a slightly different FLE2TextSearchInsertSpec.
Objectives:
# Add new enum value EncryptionPlaceholderContext::kTextSuffixComparison.
# Make required changes in buildEncryptPlaceholder & buildFle2EncryptPlaceholder so we can generate the correct BinData payload placeholder to replace our constant literal value.
# This ticket should verify that we never receive an encrypted text search expression if the schema is FLE1.
# When the enum value is EncryptionPlaceholderContext::kTextSuffixComparison, we will only populate the SuffixSpec on
FLE2TextSearchInsertSpec see relevant code.
Testing:
# Query_analysis_test.cpp: Look into the existing tests here, could we add a round trip test to verify our changes to
buildEncryptPlaceholder?