In databricks, what's the difference between the two methods.
%sql
CREATE TEMPORARY VIEW diamonds
USING CSV
OPTIONS (path "/databricks-datasets/Rdatasets/data-001/csv/ggplot2/diamonds.csv",
header "true")
OK
==================================================================
dataFrame = "/databricks-datasets/Rdatasets/data-001/csv/ggplot2/diamonds.csv"
val df = spark.read.format("csv").option("header","true")\
.option("inferSchema", "true").load(dataFrame)
df.createOrReplaceTempView("diamonds")