O'Reilly logo
  • cxz163030 thinks this is interesting:

import org.apache.spark.sql.functions.expr expr("(((someCol + 5) * 200) - 6) < otherCol")

From

Cover of Spark: The Definitive Guide

Note

table.createOrReplaceTempView("table") spark.sql("select col*5+10 as newcol from table").show()