Commit e481f486 authored by litaolemo's avatar litaolemo

update

parent 362709bf
...@@ -75,7 +75,7 @@ spark.sql("CREATE TEMPORARY FUNCTION is_json AS 'com.gmei.hive.common.udf.UDFJso ...@@ -75,7 +75,7 @@ spark.sql("CREATE TEMPORARY FUNCTION is_json AS 'com.gmei.hive.common.udf.UDFJso
spark.sql("CREATE TEMPORARY FUNCTION arrayMerge AS 'com.gmei.hive.common.udf.UDFArryMerge'") spark.sql("CREATE TEMPORARY FUNCTION arrayMerge AS 'com.gmei.hive.common.udf.UDFArryMerge'")
task_list = [] task_list = []
task_days = 3 task_days = 20
for t in range(0, task_days): for t in range(0, task_days):
day_num = 0 - t day_num = 0 - t
now = (datetime.datetime.now() + datetime.timedelta(days=day_num)) now = (datetime.datetime.now() + datetime.timedelta(days=day_num))
...@@ -161,7 +161,7 @@ LEFT JOIN ...@@ -161,7 +161,7 @@ LEFT JOIN
( (
select distinct device_id select distinct device_id
from ML.ML_D_CT_DV_DEVICECLEAN_DIMEN_D from ML.ML_D_CT_DV_DEVICECLEAN_DIMEN_D
where PARTITION_DAY = '{start_date}' where PARTITION_DAY = '{partition_date}'
AND is_abnormal_device = 'true' AND is_abnormal_device = 'true'
)b )b
on t1.device_id=b.device_id on t1.device_id=b.device_id
......
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