@Pawan1979 , are you using Scala or pyspark ?
I am using pyspark, and it is not working.