Description Usage Arguments Value Examples
Remove either a single table or all tables from a Spark session.
1 2 3 | spark_drop_table(sc, name)
spark_drop_all_tables(sc)
|
sc |
A |
name |
|
spark_drop_table()
: A logical(1)
referring to whether the removal was
successful (TRUE
) or not (FALSE
).
spark_drop_all_tables()
: A list()
of logical(1)
vectors indicating
whether the removals were successful (TRUE
) or not (FALSE
).
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
sc <- sparklyr::spark_connect(master = "local")
mtcars_spark <- sparklyr::copy_to(dest = sc, df = mtcars)
airquality_spark <- sparklyr::copy_to(dest = sc, df = airquality)
cars_spark <- sparklyr::copy_to(dest = sc, df = cars)
# We can drop a single table
spark_drop_table(sc = sc, name = "mtcars")
# Or all tables
spark_drop_all_tables(sc = sc)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.