refreshTable: Invalidates and refreshes all the cached data and metadata of...

Description Usage Arguments Details Note Examples

View source: R/catalog.R

Description

Invalidates and refreshes all the cached data and metadata of the given table. For performance reasons, Spark SQL or the external data source library it uses might cache certain metadata about a table, such as the location of blocks. When those change outside of Spark SQL, users should call this function to invalidate the cache.

Usage

1
refreshTable(tableName)

Arguments

tableName

the qualified or unqualified name that designates a table. If no database identifier is provided, it refers to a table in the current database.

Details

If this table is cached as an InMemoryRelation, drop the original cached version and make the new version cached lazily.

Note

since 2.2.0

Examples

1
2
3
4
5
## Not run: 
sparkR.session()
refreshTable("myTable")

## End(Not run)

SparkR documentation built on June 3, 2021, 5:05 p.m.