1) load command will load only parquet
val a = spark.read.load("employee.parquet")--works fine
val a=spark.read.load("employee.txt")--error
2)val a =spark.read.format("csv").load("employee.txt")--works fine
3)what is the difference between 1 and 2 point loading text as data
4)except parquet file remaining format are not accepting the below stmt
val a = spark.read.load("text/csv/json")
5) what is the difference of this two stmts
val a =spark.read.json()
val a =spark.read.format("json").load("a.json")