SERVER-139046In Code Review
Add QueryPlannerAnalysis::canProvePathIsNotMissing
Adds {{QueryPlannerAnalysis::canProvePathIsNotMissing(node, path)}}, which returns true only when {{path}} in the output of {{node}} can never be missing (SBE {{Nothing}}). Index keys store a missing value as null, so a field that comes unchanged from a covered {{IXSCAN}} is never missing. A streaming {{$group}} with a multi-field object {{_id}} needs a {{fillEmptyNull}} cluster key for every field that may be missing, because index order and sort order interleave null and missing rows. This he