[SparkSQL][SPARK-4528] modify function filterComment to make code more concise