[SPARK-3204][SQL] MaxOf would be foldable if both left and right are foldable.