Learn R Programming

SparkR (version 3.1.2)

dropTempView: Drops the temporary view with the given view name in the catalog.

Description

Drops the temporary view with the given view name in the catalog. If the view has been cached before, then it will also be uncached.

Usage

dropTempView(viewName)

Arguments

viewName

the name of the temporary view to be dropped.

Value

TRUE if the view is dropped successfully, FALSE otherwise.

Examples

Run this code
# NOT RUN {
sparkR.session()
df <- read.df(path, "parquet")
createOrReplaceTempView(df, "table")
dropTempView("table")
# }

Run the code above in your browser using DataLab