[SparkSQL][SPARK-4528] add case class CommentMark to make code more concise