Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
W
warehouse
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯双强
warehouse
Commits
c80f34be
Commit
c80f34be
authored
Sep 23, 2021
by
侯双强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排除内部员工
parent
99547ea3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
ads_platform_active.py
edw/ads/basic/ads_platform_active.py
+1
-0
ads_user_level_active.py
edw/ads/basic/ads_user_level_active.py
+2
-0
No files found.
edw/ads/basic/ads_platform_active.py
View file @
c80f34be
...
...
@@ -122,6 +122,7 @@ def query_platform_mau(data_dt):
,count(distinct user_id) as all_mau
from tamp_data_dwd.dwd_user_login_environment
where data_dt between
%
s and
%
s
and team_id <> '0'
group by date_format(data_dt, '
%%
Y-
%%
m')
'''
platform_mau_dict
=
fetch_all
(
sql
,
(
start_date
,
end_date
))
...
...
edw/ads/basic/ads_user_level_active.py
View file @
c80f34be
...
...
@@ -169,6 +169,7 @@ def query_level_wau(data_dt):
,max(level_grade) as level_grade
from tamp_data_dwd.dwd_user_login_environment
where data_dt between
%
s and
%
s
and team_id <> '0'
group by user_id
) o
group by concat(
%
s, '~',
%
s)
...
...
@@ -249,6 +250,7 @@ def query_level_mau(data_dt):
,max(level_grade) as level_grade
from tamp_data_dwd.dwd_user_login_environment
where data_dt between
%
s and
%
s
and team_id <> '0'
group by date_format(data_dt, '
%%
Y-
%%
m'),user_id
) o
group by o.data_dt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment