What's the difference between a Global view and a Temp view?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021 03:39 PM
The difference between Global and Temp is how the lifetime of the view is tied to the application:
Creates or replaces a local temporary view with this DataFrame.
The lifetime of this temporary table is tied to the SparkSession that was used to create this DataFrame.
Creates or replaces a global temporary view using the given name.
The lifetime of this temporary view is tied to this Spark application.
Labels:
- Labels:
-
Global Temporary View
-
Tempview