[SPARK-3781] code Style format

1. code formater
2. scala normal usage about method and param