I am trying to understand the difference between createOrReplaceGlobalTempView and createOrReplaceTempView.
createOrReplaceTempView is introduced in version 2.0 and createOrReplaceGlobalTempView is introduced in 2.2.
As per the documentation,
for createOrReplaceGlobalTempView : the lifetime of this temporary view is tied to this Spark application.
For createOrReplaceGlobalTempView : The lifetime of this temporary table is tied to the SparkSession that was used to create this DataFrame.
Could you please elaborate the difference on Spark Application and SparkSession.
Regards,
Neeraj