title: How to use ASCII function in Spark
body: <p>I needed help in using Spark function ASCII(sparkSQl string function) by using scala</p>
  
  <pre><code>import org.apache.spark.sql.SparkSession
  import spark.implicits._
  import org.apache.spark.sql.functions
  
  val a = sc.parallelize(Array("Santosh","Adithya"))
  select ascii('Santosh')
  </code></pre>
  
  <p>I needed ascii value of santosh and ascii value of rdd a</p>