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
c0093701
Commit
c0093701
authored
3 years ago
by
郭羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特征工程优化
parent
0807a378
master
No related merge requests found
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 @
c0093701
...
@@ -385,7 +385,7 @@ def getClickSql(start, end):
...
@@ -385,7 +385,7 @@ def getClickSql(start, end):
select partition_date,cl_id,business_id as card_id,time_stamp,page_stay
select partition_date,cl_id,business_id as card_id,time_stamp,page_stay
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}'
AND page_name='welfare_detail'
AND page_name='welfare_detail'
-- AND page_stay>=1
-- AND page_stay>=1
AND cl_id is not null
AND cl_id is not null
...
@@ -431,7 +431,7 @@ def getExposureSql(start, end):
...
@@ -431,7 +431,7 @@ def getExposureSql(start, end):
( --新首页卡片曝光
( --新首页卡片曝光
SELECT partition_date,cl_id,card_id,time_stamp
SELECT partition_date,cl_id,card_id,time_stamp
FROM online.ml_community_precise_exposure_detail
FROM online.ml_community_precise_exposure_detail
where partition_date>='{startDay}' and partition_date<'{endDay}'
where partition_date>='{startDay}' and partition_date<
=
'{endDay}'
and action in ('page_precise_exposure','home_choiceness_card_exposure')
and action in ('page_precise_exposure','home_choiceness_card_exposure')
and cl_id IS NOT NULL
and cl_id IS NOT NULL
and card_id IS NOT NULL
and card_id IS NOT NULL
...
...
This diff is collapsed.
Click to expand it.
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