powered by
Registers a SparkDataFrame as a Temporary Table in the SparkSession
registerTempTable(x, tableName)# S4 method for SparkDataFrame,character registerTempTable(x, tableName)
# S4 method for SparkDataFrame,character registerTempTable(x, tableName)
A SparkDataFrame
A character vector containing the name of the table
createOrReplaceTempView
# NOT RUN { sparkR.session() path <- "path/to/file.json" df <- read.json(path) registerTempTable(df, "json_df") new_df <- sql("SELECT * FROM json_df") # }
Run the code above in your browser using DataLab