createOrReplaceTempView creates (or replaces if that view name already exists) a lazily evaluated "view" that you can then use like a hive table in Spark SQL. It does not persist to memory unless you cache the dataset that underpins the view.

4. SQL Service: SQL Service is the entry point for working along structured data in Spark. It allows the creation of DataFrame objects as well as the execution of SQL queries. Features Of Spark SQL. The following are the features of Spark SQL: Integration With Spark Spark SQL queries are integrated with Spark programs.