Commit 7a4644e0 authored by 王志伟's avatar 王志伟

测试埋点数据

parent ff075aef
......@@ -476,7 +476,8 @@ object icon_train_data {
sc.sql("use jerry_prod")
val stat_date = GmeiConfig.getMinusNDate(1)
val stat_date = GmeiConfig.getMinusNDate(1) //昨天
val qian_date = GmeiConfig.getMinusNDate(2) //前天
// val stat_date = param.date
//println(param.date)
val partition_date = stat_date.replace("-","")
......@@ -545,6 +546,8 @@ object icon_train_data {
|from online.ml_meigou_order_detail
|where partition_date='${partition_date}'
|and device_id is not null
|and validate_time >'${qian_date}'
|and validate_time <='${stat_date}'
""".stripMargin
)
megou_order.createOrReplaceTempView("megou_order")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment