[SPARK-57775][SQL][FOLLOWUP] Fix the grand-total behavior change version to Spark 4.2+