Description
currently only temporary Spark Views can be created from a DataFrame:
- DataFrame.createTempView
- DataFrame.createOrReplaceTempView
- DataFrame.createGlobalTempView
- DataFrame.createOrReplaceGlobalTempView
When a user needs a permanent Spark View he has to fall back to Spark SQL (CREATE VIEW AS SELECT...).
Sometimes it is easier and more readable to specify the desired logic of the view through Scala/PySpark DataFrame API.
Therefore, I'd like to suggest to implement a new PySpark method that allows creating a permanent Spark View from a DataFrame (e.g. DataFrame.createOrReplaceView).
see also: