Difference between createOrReplaceTempView and registerTempTable

前端 未结 3 1508
离开以前
离开以前 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:32

    registerTempTable is a part of the 1.x API and has been deprecated in Spark 2.0.

    createOrReplaceTempView and createTempView have been introduced in Spark 2.0, as a replacement for registerTempTable.

    Other than that registerTempTable and createOrReplaceTempView functionally equivalent and the former one calls the latter one.

提交回复
热议问题