Description Usage Arguments Value Examples
Execute Spark SQL queries directly on the spark session
1 | spark_sql(expr)
|
expr |
a string, the SQL query |
a spark_tbl
1 2 3 4 5 6 | ## Not run:
spark_tbl(iris) %>% register_temp_view("iris")
iris_preview <- spark_sql("SELECT * FROM iris LIMIT 10")
iris_preview %>% collect
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.