Difference between createTempview and createGlobaltempview and CreateorReplaceTempview in spark 2.1?

梦想的初衷 提交于 2019-11-30 15:47:33

Global Temporary View

As per documentation, global temporary view are views that are shared among all the sessions, untill all the Spark Application terminates.

createorReplaceTempview

createTempView (or more appropriately createOrReplaceTempView) has been introduced in Spark 2.0 to replace registerTempTable, which has been deprecated in 2.0. createTempView creates an in memory reference to the Dataframe in use. The lifetime for this is tied to the spark session in which the Dataframe was created in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!