Spark2 session for Cassandra , sql queries
<p>In Spark-2.0 what is the best way to create a Spark session. Because in both  Spark-2.0 and Cassandra- the APIs have been reworked, essentially deprecating the SqlContext (and also CassandraSqlContext). So for executing SQL- either I create a Cassandra Session <code>(com.datastax.driver.core.Session) and use execute( " ")</code>. Or I have to create a <code>SparkSession (org.apache.spark.sql.SparkSession) and execute sql(String sqlText)</code> method.</p>

<p>I don't know the SQL limitations of either - can someone explain.</p>

<p>Also if I have to create the SparkSession - how do I do it- couldn't find any suitable example. With APIs getting reworked the old examples don't work. 
I was going thru this code sample- <a href="https://github.com/datastax/spark-cassandra-connector/blob/master/doc/14_data_frames.md" rel="nofollow noreferrer">DataFrames</a>- not clear what sql context is being used here (is that the right approach going forward.)
(For some reason deprecated APIs are not even compiling - need to check my eclipse settings)</p>

<p>Thanks</p>