registerTempTable-deprecated: (Deprecated) Register Temporary Table

Description Usage Arguments Note See Also Examples

Description

Registers a SparkDataFrame as a Temporary Table in the SparkSession

Usage

1
2
3
4
registerTempTable(x, tableName)

## S4 method for signature 'SparkDataFrame,character'
registerTempTable(x, tableName)

Arguments

x

A SparkDataFrame

tableName

A character vector containing the name of the table

Note

registerTempTable since 1.4.0

See Also

createOrReplaceTempView

Examples

1
2
3
4
5
6
7
8
## Not run: 
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
registerTempTable(df, "json_df")
new_df <- sql("SELECT * FROM json_df")

## End(Not run)

SparkR documentation built on June 3, 2021, 5:05 p.m.