[SPARK-3897]format example code and explicit val instead of var