Hi all,
currently only *temporary* Spark Views can be created from a DataFrame
(df.createOrReplaceTempView or df.createOrReplaceGlobalTempView).

When I want a *permanent* Spark View I need to specify it via Spark SQL
(CREATE VIEW AS SELECT ...).

Sometimes it is easier to specify the desired logic of the View through
Spark/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
(df.createOrReplaceView).

see also:
https://community.databricks.com/s/question/0D53f00001PANVgCAP/is-there-a-way-to-create-a-nontemporary-spark-view-with-pyspark

Regards
Martin

Reply via email to