I am new to spark and was trying out a few commands in sparkSql
using python when I came across these two commands:
createOrReplaceTempView() and regis
Both the function between createOrReplaceTempView
and registerTempTable
are same and have same functionalities.
However registerTempTable
is depricated from spark 2.0.0
Instead of registerTempTable
, createOrReplaceTempView
is used
@deprecated("Use createOrReplaceTempView(viewName) instead.", "2.0.0") def registerTempTable(tableName: String): Unit = { createOrReplaceTempView(tableName) }