[SERVER-67479] Query analysis should fail if querying for constant outside of the bounds of the index Created: 23/Jun/22  Updated: 29/Oct/23  Resolved: 23/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Davis Haupt (Inactive) Assignee: Davis Haupt (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QO 2022-08-22
Participants:

 Description   

Encrypted fields always have a min and max bounds for range indexes. Query analysis should fail when querying for a value outside of this range.

Example, let's say age has a min of 0 and a max of 200. Here are some queries that should fail at analysis-time:

{x: {$gt: 256}}
{x: {$lt: -5}}

This ticket will also require adding the min and max bounds to the encrypted metadata.



 Comments   
Comment by Githook User [ 23/Aug/22 ]

Author:

{'name': 'Reilly McBride', 'email': 'reilly.mcbride@mongodb.com'}

Message: SERVER-67479 Query analysis should fail if querying for constant outside of the bounds of the index

Co-authored-by: Davis Haupt <davis.haupt@mongodb.com>
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/0d4ecbdc2fd19f740b5244e091ae6017c3fac012

Generated at Thu Feb 08 06:08:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.