| table_exists {catalog} | R Documentation |
Check If A Table Exists
Description
Check if the table or view with the specified name exists in the specified database. This can either be a temporary view or a table/view.
Usage
table_exists(sc, table, database = NULL)
Arguments
sc |
A |
table |
|
database |
|
Details
If database is NULL, table_exists refers to a table in the current
database (see current_database()).
Value
A logical(1) vector indicating TRUE if the table exists within the
specified database and FALSE otherwise.
See Also
cache_table(), create_table(), get_table(), list_tables(),
refresh_table(), uncache_table()
Examples
## Not run:
sc <- sparklyr::spark_connect(master = "local")
mtcars_spark <- sparklyr::copy_to(dest = sc, df = mtcars)
table_exists(sc = sc, table = "mtcars")
## End(Not run)
[Package catalog version 0.1.1 Index]