I am new to Spark/Scala/Hive. Am just wondering if there are any differences between calling
spark = new SparkSession(...).getHiveContext()
spark.sql("SELECR * FROM table")
and
spark = new SparkSession(...).getHiveContext() // not using
spark.read.table(table).select(from("*"))
??
Particularly, are there any performance difference.