SERVER-134626ClosedFixed

Add test verifying PQS maxEstimatedScanBytes: -1 exempts a query shape from maxEstimatedScanBytes

h3. Background {{maxEstimatedScanBytes}} rejects queries at plan time when the plan requires an unbounded COLLSCAN on a collection whose data size exceeds a configured byte threshold. Query Settings (PQS) can override this threshold per query shape via {{queryKnobs.maxEstimatedScanBytes}}. Existing coverage in {{jstests/noPassthrough/query/max_estimated_scan_bytes.js}} tests that PQS can lower or raise the threshold for a specific shape, but there was no coverage confirming that setting the PQS

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.