Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
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
data
bi-report
Commits
8acdc491
Commit
8acdc491
authored
Aug 13, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'yindanlei' into 'master'
Yindanlei See merge request
!41
parents
ece1267c
1a3b8836
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
fangan_day.sql
pm/fangan_day/etl/fangan_day.sql
+12
-12
fangan_day.zip
pm/fangan_day/job/fangan_day.zip
+0
-0
step1_5.job
pm/fangan_day/job/step1_5.job
+2
-2
No files found.
pm/fangan_day/etl/fangan_day.sql
View file @
8acdc491
...
...
@@ -142,15 +142,15 @@ LEFT JOIN
SELECT
user_id
,
merchant_id
,
substr
(
partition_da
te
,
1
,
6
)
AS
consult_month
,
min
(
partition_da
te
)
AS
first_consult_date
,
substr
(
partition_da
y
,
1
,
6
)
AS
consult_month
,
min
(
partition_da
y
)
AS
first_consult_date
,
1
AS
consult_num
FROM
online
.
AL_COMMUNITY_USER_VALID_CONSULT_DAY
FROM
ml
.
ML_C_ET_MSG_CONVERSATION_DIMEN_INC_D
WHERE
partition_da
te
between
'20200701'
AND
regexp_replace
(
date_sub
(
current_date
(),
1
),
'-'
,
''
)
AND
is_valid
_consult
=
'true'
partition_da
y
between
'20200701'
AND
regexp_replace
(
date_sub
(
current_date
(),
1
),
'-'
,
''
)
AND
is_valid
=
'true'
AND
merchant_id
IS
NOT
NULL
GROUP
BY
user_id
,
merchant_id
,
substr
(
partition_da
te
,
1
,
6
)
GROUP
BY
user_id
,
merchant_id
,
substr
(
partition_da
y
,
1
,
6
)
)
T3
FULL
JOIN
(
...
...
@@ -259,15 +259,15 @@ LEFT JOIN
SELECT
user_id
,
merchant_id
,
substr
(
partition_da
te
,
1
,
6
)
AS
consult_month
,
min
(
partition_da
te
)
AS
first_consult_date
,
substr
(
partition_da
y
,
1
,
6
)
AS
consult_month
,
min
(
partition_da
y
)
AS
first_consult_date
,
1
AS
consult_num
FROM
online
.
AL_COMMUNITY_USER_VALID_CONSULT_DAY
FROM
ml
.
ML_C_ET_MSG_CONVERSATION_DIMEN_INC_D
WHERE
partition_da
te
between
'20200701'
AND
regexp_replace
(
date_sub
(
current_date
(),
1
),
'-'
,
''
)
AND
is_valid
_consult
=
'true'
partition_da
y
between
'20200701'
AND
regexp_replace
(
date_sub
(
current_date
(),
1
),
'-'
,
''
)
AND
is_valid
=
'true'
AND
merchant_id
IS
NOT
NULL
GROUP
BY
user_id
,
merchant_id
,
substr
(
partition_da
te
,
1
,
6
)
GROUP
BY
user_id
,
merchant_id
,
substr
(
partition_da
y
,
1
,
6
)
)
T3
FULL
JOIN
(
...
...
pm/fangan_day/job/fangan_day.zip
View file @
8acdc491
No preview for this file type
pm/fangan_day/job/step1_5.job
View file @
8acdc491
#step1_5.job
type=command
command=sh /home/bi/bi-report/lib/shell/waitsuccess.sh hive online AL_COMMUNITY_USER_VALID_CONSULT_DAY
\ No newline at end of file
command=sh /home/bi/bi-report/lib/shell/waitsuccess.sh hive ml ML_C_ET_MSG_CONVERSATION_DIMEN_INC_D
\ No newline at end of file
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