
Explanation:
df.createOrReplaceTempView('view_name') exposes the DataFrame as a temporary view in the Spark SQL catalog for the duration of the current Spark session. It does not write the data to disk.
A
df.saveAsTable()
B
df.createOrReplaceTempView()
C
df.persist()
D
spark.sql('REGISTER TABLE')
No comments yet.