SPRKPY1021
pyspark.sql.functions.last has a workaround
Category
Description
df.withColumn('LastEmp', F.last('EmployeeName').over(windowSpec))#EWI: SPRKPY1021 => pyspark.sql.functions.last has a workaround, see documentation for more info
df.withColumn('LastEmp', F.last('EmployeeName').over(windowSpec))Scenario:
df.withColumn('LastEmp',F.call_builtin('last_value',col('EmployeeName')).over(windowSpec))