//天数时间差
table.select(datediff(table.col("Start Time"), table.col("End Time"))).show()
//描述时间差
import org.apache.spark.sql.functions._
//For $notation columns // Spark 2.0
import spark.implicits._
table.withColumn("date_diff",
(unix_timestamp($"Start Time") - unix_timestamp($"End Time"))
).show()