This commit is contained in:
wuaho 2021-08-16 18:07:38 +08:00
parent ba9bb564dc
commit da05dd532c

View File

@ -1,3 +1,6 @@
"""
清理测试数据
"""
import json
from settings import settings
@ -22,7 +25,7 @@ where
`#event_time`>addDays(now('UTC'),-3) and (
lower(`#os`) = 'windows'
or svrindex not in {serverid}
or svrindex is null )
)
group by `#account_id`, `#event_time`, `#event_name`,`#os`,`svrindex`
having n = 1 limit 2000"""