How to convert an RDD[Unit] to a dataframe in Scala? :     val sid_df = hiveContext.sql("SELECT a, b, c, d, e FROM my_table")
    
    val new_reformatted_rdd = sid_df.map(row => {
    val t = row.getDouble(0)
    val f = row.getFloat(1)
    val s = row.getShort(2)
    val y = row.getString(3).toShort
    val originFormat = new java.text.SimpleDateFormat("MM-dd-yyyy")
    val targetFormat = new java.text.SimpleDateFormat("yyyy-MM-dd")
    val new_date = targetFormat.format(originFormat.parse(row.getString(4)))
    })
I need a dataframe from new_reformatted_rdd which is an RDD[Unit]. Kindly suggest me how to do it. Thanks