Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
serviceRec
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
郭羽
serviceRec
Commits
5c3a1c78
Commit
5c3a1c78
authored
Jul 09, 2021
by
郭羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update feature
parent
72bf3e0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
featureEng.py
spark/featureEng.py
+2
-2
No files found.
spark/featureEng.py
View file @
5c3a1c78
...
@@ -379,10 +379,10 @@ def getEsConn():
...
@@ -379,10 +379,10 @@ def getEsConn():
def
getClickSql
(
start
,
end
):
def
getClickSql
(
start
,
end
):
sql
=
"""
sql
=
"""
SELECT DISTINCT t1.partition_date, t1.cl_id device_id, t1.card_id,t1.time_stamp,t1.page_stay
SELECT DISTINCT t1.partition_date, t1.cl_id device_id, t1.card_id,t1.time_stamp,t1.page_stay
,t1.cl_type as os
FROM
FROM
(
(
select partition_date,cl_id,business_id as card_id,time_stamp,page_stay,cl_type
as os
select partition_date,cl_id,business_id as card_id,time_stamp,page_stay,cl_type
from online.bl_hdfs_maidian_updates
from online.bl_hdfs_maidian_updates
where action = 'page_view'
where action = 'page_view'
AND partition_date>='{startDay}' and partition_date<='{endDay}'
AND partition_date>='{startDay}' and partition_date<='{endDay}'
...
...
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