val dateDF=spark.range(10)
.withColumn("today",current_date())
.withColumn("now",current_timestamp())
dateDF.createOrReplaceTempView("dateTable")
dateDF.printSchema()
dateDF.select(date_sub(col("today"),5),date_add(col("today"),5)).show(1)
spark.sql("select date_sub(today,5),date_add(today,5) from dateTable").show(1)