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
7542f649
Commit
7542f649
authored
May 28, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
2aa894f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
daily_content_data.sql
sqls/daily_content_data/daily_content_data.sql
+1
-1
daily_content_data_insert.sql
sqls/daily_content_data_insert/daily_content_data_insert.sql
+1
-1
No files found.
sqls/daily_content_data/daily_content_data.sql
View file @
7542f649
...
@@ -88,4 +88,4 @@ SELECT
...
@@ -88,4 +88,4 @@ SELECT
,
per_article_pv
AS
`专栏PV/专栏UV`
,
per_article_pv
AS
`专栏PV/专栏UV`
,
article_stay
AS
`专栏单设备时长(m)`
,
article_stay
AS
`专栏单设备时长(m)`
FROM
pm
.
tl_pm_content_d
FROM
pm
.
tl_pm_content_d
where
partition_day
=
'${partition_day}'
where
partition_day
=
regexp_replace
((
current_date
-
interval
'1'
day
),
'-'
,
''
)
sqls/daily_content_data_insert/daily_content_data_insert.sql
View file @
7542f649
INSERT
OVERWRITE
TABLE
tl_pm_content_d
PARTITION
(
PARTITION_DAY
=
'${partition_day}'
)
INSERT
OVERWRITE
TABLE
tl_pm_content_d
PARTITION
(
PARTITION_DAY
=
regexp_replace
((
current_date
-
interval
'1'
day
),
'-'
,
''
)
)
SELECT
SELECT
...
...
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