pyspark中不同tempview API的功能差异

时间:2019-05-05 03:37:31

标签: pyspark

Spark Dataset 2.0提供以下功能,我无法理解这些功能之间的基本区别。

createGlobalTempView - Creates a global temporary view with this DataFrame
createOrReplaceGlobalTempView -Creates or replaces a global temporary view using the given name
createOrReplaceTempView - Creates or replaces a local temporary view with this DataFrame.
createTempView - Creates a local temporary view with this DataFrame

createGlobalTempView,createOrReplaceGlobalTempView之间的差异-能够理解像使用此数据框df创建或替换本地临时视图一样。 createTempView , createOrReplaceTempView之间的差异-上面提到的相同差异。 现在,我们需要在哪里使用哪一个?您能否提供这些API之间的一些细节和功能上的差异?

0 个答案:

没有答案