[SPARK-3382] Modify warning message statements