在 SQL 中有:
REFRESH TABLE table_name
Run Code Online (Sandbox Code Playgroud)
在 pyspark 中相当于:
spark.refreshTable(table_name)
Run Code Online (Sandbox Code Playgroud)
那么,Pyspark 相当于:
MSCK REPAIR TABLE table_name
Run Code Online (Sandbox Code Playgroud)