Difference between createOrReplaceTempView and registerTempTable

前端 未结 3 1510
离开以前
离开以前 2020-12-28 15:07

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

3条回答
  •  情歌与酒
    2020-12-28 15:27

    No difference at all between createOrReplaceTempView and registerTempTable both performs the same functionality and if you open the below link and search for registerTempTable you can see that this function is deprecated in 2.0.

    There is a note like below: Deprecated in 2.0 use createOrReplaceTempView instead.

    https://spark.apache.org/docs/2.0.0/api/python/pyspark.sql.html

提交回复
热议问题