use spark sql
Revert "use spark sql"

This reverts commit e9832eacb957ff50f31dd1d037d5a053f361e361.