[spark] clear code.