0
The error didn't get replicated in mine but the output was all null too. So I passed columns instead of string and it worked as gps_data.withColumn("dist", dist( col("longitude"), col("latitude"), lag("longitude", 1).over(my_window), lag("latitude", 1).over(my_window) ).alias("dist")).sh...