Commit 2ecc2699 authored by 魏艺敏's avatar 魏艺敏

push codes

parent dac7b619
...@@ -674,7 +674,7 @@ FROM ...@@ -674,7 +674,7 @@ FROM
partition_date,device_id,device_os_type partition_date,device_id,device_os_type
,case WHEN active_type = '4' THEN '老活跃设备' ,case WHEN active_type = '4' THEN '老活跃设备'
WHEN active_type in ('1','2') then '新增设备' END as active_type WHEN active_type in ('1','2') then '新增设备' END as active_type
, '灰度' AS grey_type ,CASE WHEN substr(md5(device_id), -1, 1) IN ('0', '1', '2', '3', '8', 'a', 'b', 'f') THEN '非灰' ELSE '灰度' END AS grey_type
FROM online.ml_device_day_active_status FROM online.ml_device_day_active_status
where partition_date=regexp_replace(DATE_SUB(current_date,1) ,'-','') where partition_date=regexp_replace(DATE_SUB(current_date,1) ,'-','')
AND active_type in ('1','2','4') AND active_type in ('1','2','4')
......
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