
Answer-first summary for fast verification
Answer: Temporary Views are session-scoped and cannot be accessed by other Spark sessions, whereas Global Temporary Views are accessible across multiple Spark sessions within the same Spark application.
Temporary Views are tied to a single Spark session and are not visible to other sessions, while Global Temporary Views are visible across all sessions of a Spark application but are not stored in the Hive metastore.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
What distinguishes a Temporary View from a Global Temporary View in Databricks?
A
Temporary Views are stored in the Hive metastore and are accessible across all sessions, whereas Global Temporary Views are session-scoped and not stored in the Hive metastore.
B
There is no difference; both Temporary and Global Temporary Views have the same scope and visibility across Spark sessions.
C
Temporary Views can be created on disk, making them persistent across Spark sessions, whereas Global Temporary Views are in-memory only and lost after the session ends.
D
Temporary Views are session-scoped and cannot be accessed by other Spark sessions, whereas Global Temporary Views are accessible across multiple Spark sessions within the same Spark application.
No comments yet.