In the book "Spark Definitive Guide" Bill says that read is a transformation and its a narrow transformation,
Now if I run the below spark code and try and go look at the spark UI I see a job created
df = spark.read.csv("path/to/file")
Now to my understanding, a Job is an action called. also if I try to put in some options while reading a CSV I see one more job in spark UI, so when if we, for example, run the below code, there are 2 jobs in spark UI
df = spark.read.option("inferSchema", "true").csv("path/to/file")
so my question is if spark.read is a transformation why is it creating Job?


