title: Spark Sql registerTempTable and registerDataFrameAsTable difference
body: <p>what is difference between  <code>registerTempTable</code> and <code>registerDataFrameAsTable</code> method in Spark SQL and which is better in which scenario. </p>