写一段用spark计算ltv3的代码
时间: 2023-03-12 22:48:37 浏览: 118
AD芯片ltv1578的VHDL代码
val ltv3 = spark.sql("SELECT user_id, sum(revenue) as ltv3 FROM events WHERE event_date between date_sub(current_date, 7) and current_date GROUP BY user_id")
阅读全文
AD芯片ltv1578的VHDL代码