Description
No SQL metrics are visible in the SQL tab of SparkUI when foreach is executed on the DataFrame.
e.g.
sql("select * from range(10)").collect() sql("select * from range(10)").foreach(a => Unit) sql("select * from range(10)").foreach(a => println(a))
See collect.png vs. foreach.png