Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
meta_base_code
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黎涛
meta_base_code
Commits
bbddffd9
Commit
bbddffd9
authored
Sep 16, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
17ddb72a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
user_behavior_path.py
new_user_analysis/user_behavior_path.py
+2
-2
No files found.
new_user_analysis/user_behavior_path.py
View file @
bbddffd9
...
...
@@ -183,7 +183,7 @@ WHERE spam_pv.device_id IS NULL
maidian_sql
=
"""select t1.device_id,t2.track as track from
(select device_id from device_id_view)t1
left join
(select cl_id, concat_ws(',', collect_list(action
)) as track from
(select cl_id, concat_ws(',', collect_list(action)) as track from
(select * from online.bl_hdfs_maidian_updates where partition_date = {partition_date} and cl_id is not null ) group by cl_id) t2
on t1.device_id = t2.cl_id"""
.
format
(
partition_date
=
yesterday_str
)
print
(
maidian_sql
)
...
...
@@ -194,7 +194,7 @@ on t1.device_id = t2.cl_id""".format(partition_date=yesterday_str)
print
(
"-------------------------------"
)
for
count
,
res
in
enumerate
(
sql_res
):
#
print(count, res)
print
(
count
,
res
)
track
=
res
.
track
track_list
=
track
.
split
(
","
)
for
one_key_word
in
track_list
:
...
...
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