New mode: "ndv" for the analyze command
- IDL: add kNdv to the analyze mode enum. Validation: key required; sampleSize/sampleRate/numberBuckets rejected; sharded collections rejected
- Build and run the aggregation via DBDirectClient (mirroring analyzeCommandAsAggregationCommand): $project -> $group with $_internalConstructNdvSketch (_id = the full persisted doc id) -> $project stamping schemaVersion/collectionUuid/fieldPaths/createdAt -> $merge into system.stats.ndv with whenMatched: replace.
- related to
-
SERVER-131759 Register system.stats.ndv & persisted schema
-
- Closed
-
-
SERVER-133120 Refactor the analyze command into per-mode handlers with shared validation
-
- Needs Scheduling
-
-
SERVER-133281 Strip failpoint.* setParameters when starting a server with test commands disabled
-
- Backlog
-