Description Usage Arguments Examples
similar to Spark's createOrReplaceTemporaryView
method,
this function registers the DAG at a given point in the lineage as a temp view
in the hive metastore. It does not cache the data, but the name supplied can
be used in future Spark SQL queries.
1 | register_temp_view(.data, name)
|
.data |
a |
name |
a |
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.