Catalog.RefreshTable(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. If this table is cached as an InMemoryRelation, drop the original cached version and make the new version cached lazily.
public void RefreshTable (string tableName);
member this.RefreshTable : string -> unit
Public Sub RefreshTable (tableName As String)
Parameters
- tableName
- String
Is either a qualified or unqualified name that designates a table. If no database identifier is provided, it refers to a table in the current database.