Exception spark
try { // Spark SQL code that might throw an exception spark.sql(“SELECT * FROM invalid_table”) } catch { case e: org.apache.spark.sql.AnalysisException => println(“Analysis exception: ” + e.getMessage) case e: org.apache.spark.sql.ParseException => println(“Parse exception: ”...