df_export=(
spark.table('db.table')
)
df_new_df=df_export.orderBy("count")
both df_export and df_new_df is stored in spark memory and not in files. Definition of Tempory view in spark is "A Temporary view in Spark is similar to a real SQL table that contains rows and columns but the view is not materialized into files.". How is this different from storing in a dataframe as above?