registerTempTable is part of API 1.x and is deprecated in Spark 2.0.
createOrReplaceTempViewand createTempViewwere introduced in Spark 2.0 as a replacement for registerTempTable.
In addition, registerTempTablethey are createOrReplaceTempViewfunctionally equivalent, and the former calls the latter.
source
share