| sql {SparkR} | R Documentation | 
Executes a SQL query using Spark, returning the result as a SparkDataFrame.
sql(sqlQuery)
| sqlQuery | A character vector containing the SQL query | 
SparkDataFrame
sql since 1.4.0
## Not run: 
##D sparkR.session()
##D path <- "path/to/file.json"
##D df <- read.json(path)
##D createOrReplaceTempView(df, "table")
##D new_df <- sql("SELECT * FROM table")
## End(Not run)