list_tables: List Tables In A Spark Connection

Description Usage Arguments Value See Also Examples

View source: R/tables.R

Description

Returns a list of tables/views in the current database. The result includes the name, database, description, table type and whether the table is temporary or not.

Usage

1
list_tables(sc, database = NULL)

Arguments

sc

A spark_connection.

database

character(1). The name of the database for which the functions should be listed (default: NULL).

Value

A tibble containing 5 columns:

See Also

cache_table(), create_table(), get_table(), refresh_table(), table_exists(), uncache_table()

Examples

1
2
3
4
5
6
## Not run: 
sc <- sparklyr::spark_connect(master = "local")
mtcars_spakr <- sparklyr::copy_to(dest = sc, df = mtcars)
list_tables(sc = sc)

## End(Not run)

catalog documentation built on March 20, 2021, 5:06 p.m.