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
6158dcd8
Commit
6158dcd8
authored
Aug 13, 2020
by
yindanlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add fangan_day report codes
parent
e66ded17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
fangan_day.sql
pm/fangan_day/etl/fangan_day.sql
+12
-12
step1_5.job
pm/fangan_day/job/step1_5.job
+2
-2
No files found.
pm/fangan_day/etl/fangan_day.sql
View file @
6158dcd8
...
@@ -142,15 +142,15 @@ LEFT JOIN
...
@@ -142,15 +142,15 @@ LEFT JOIN
SELECT
SELECT
user_id
user_id
,
merchant_id
,
merchant_id
,
substr
(
partition_da
te
,
1
,
6
)
AS
consult_month
,
substr
(
partition_da
y
,
1
,
6
)
AS
consult_month
,
min
(
partition_da
te
)
AS
first_consult_date
,
min
(
partition_da
y
)
AS
first_consult_date
,
1
AS
consult_num
,
1
AS
consult_num
FROM
online
.
AL_COMMUNITY_USER_VALID_CONSULT_DAY
FROM
ml
.
ML_C_ET_MSG_CONVERSATION_DIMEN_INC_D
WHERE
WHERE
partition_da
te
between
'20200701'
AND
regexp_replace
(
date_sub
(
current_date
(),
1
),
'-'
,
''
)
partition_da
y
between
'20200701'
AND
regexp_replace
(
date_sub
(
current_date
(),
1
),
'-'
,
''
)
AND
is_valid
_consult
=
'true'
AND
is_valid
=
'true'
AND
merchant_id
IS
NOT
NULL
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
)
T3
FULL
JOIN
FULL
JOIN
(
(
...
@@ -259,15 +259,15 @@ LEFT JOIN
...
@@ -259,15 +259,15 @@ LEFT JOIN
SELECT
SELECT
user_id
user_id
,
merchant_id
,
merchant_id
,
substr
(
partition_da
te
,
1
,
6
)
AS
consult_month
,
substr
(
partition_da
y
,
1
,
6
)
AS
consult_month
,
min
(
partition_da
te
)
AS
first_consult_date
,
min
(
partition_da
y
)
AS
first_consult_date
,
1
AS
consult_num
,
1
AS
consult_num
FROM
online
.
AL_COMMUNITY_USER_VALID_CONSULT_DAY
FROM
ml
.
ML_C_ET_MSG_CONVERSATION_DIMEN_INC_D
WHERE
WHERE
partition_da
te
between
'20200701'
AND
regexp_replace
(
date_sub
(
current_date
(),
1
),
'-'
,
''
)
partition_da
y
between
'20200701'
AND
regexp_replace
(
date_sub
(
current_date
(),
1
),
'-'
,
''
)
AND
is_valid
_consult
=
'true'
AND
is_valid
=
'true'
AND
merchant_id
IS
NOT
NULL
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
)
T3
FULL
JOIN
FULL
JOIN
(
(
...
...
pm/fangan_day/job/step1_5.job
View file @
6158dcd8
#step1_5.job
#step1_5.job
type=command
type=command
command=sh /home/bi/bi-report/lib/shell/waitsuccess.sh hive online AL_COMMUNITY_USER_VALID_CONSULT_DAY
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
\ 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