The following queries fail with fle2 because the start of the interval is using the minimum date instead of using double infinity.
$and: [{birthdate: {$lt: ISODate("2002-12-04T10:45:10.957Z")}}, {debt: {$lte: NumberDecimal(5000.00)}}]
|
{birthdate: {$not: {$lt: ISODate("2002-12-04T10:45:10.957Z")}}}
|
Therefore, this uassert statement in query_analysis fails. since the lower bound of the query is the minimum date, which can be out of bounds of the range index.
uassert(6747901,
|
str::stream()
|
<< "Lower bound of range predicate must be within the bounds of encrypted index.",
|
elementIsInfinite(interval.start) || literalWithinRangeBounds(metadata, interval.start));
|