You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spark.sql("Select distinct(year),count(year) as Number_of_Movies from sparkdatalake.movies group by year").repartition(1).write.format("csv").option("header","true").save("result")