标签: scala dataframe apache-spark
val wc = Window.partitionBy("id","event").orderBy("time") df1 = df1.withColumn("Price", when(col("view_id") === "com.txtListDialogTitle", lit(first(col("Price")).over(wc))).otherwise(col("")))