Catalog.DropTempView(String) Method

Definition

Drops the local temporary view with the given view name in the catalog. Local temporary view is session-scoped. Its lifetime is the lifetime of the session that created it, i.e. it will be automatically dropped when the session terminates. It's not tied to any databases, i.e. we can't use db1.view1 to reference a local temporary view.

You can create temporary views by taking a DataFrame and calling DataFrame.CreateOrReplaceTempView.

public bool DropTempView (string viewName);
member this.DropTempView : string -> bool
Public Function DropTempView (viewName As String) As Boolean

Parameters

viewName
String

The unqualified name of the temporary view to be dropped.

Returns

bool, true if the view was dropped and false if it was not dropped.

Applies to