Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Amazon-Selection-Data
Overview
Overview
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
abel_cjy
Amazon-Selection-Data
Commits
86fba451
Commit
86fba451
authored
Nov 03, 2026
by
chenyuanjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pinterest脏数据调整
parent
7ea83726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
pinterest_month.py
Pyspark_job/doris_handle/pinterest_month.py
+5
-2
No files found.
Pyspark_job/doris_handle/pinterest_month.py
View file @
86fba451
...
...
@@ -171,7 +171,9 @@ FROM (
title,
CAST(annotations AS ARRAY<STRING>) AS annotations_arr,
saves,
str_to_date(substr(pin_created_at, 6, 20), '
%
d
%
b
%
Y
%
H:
%
i:
%
s') AS pin_created_at,
-- 异常值置空:发布时间晚于当前UTC时间
CASE WHEN str_to_date(substr(pin_created_at, 6, 20), '
%
d
%
b
%
Y
%
H:
%
i:
%
s') > utc_timestamp() THEN NULL
ELSE str_to_date(substr(pin_created_at, 6, 20), '
%
d
%
b
%
Y
%
H:
%
i:
%
s') END AS pin_created_at,
domain,
tracked_link,
board_name,
...
...
@@ -179,7 +181,8 @@ FROM (
updated_at AS pin_crawl_date,
reactions,
share_count,
repin_count,
-- 异常值置空:转存数为负
CASE WHEN repin_count < 0 THEN NULL ELSE repin_count END AS repin_count,
comment_count,
creator_name,
CONCAT('https://www.pinterest.com/', NULLIF(TRIM(creator_username), ''), '/') AS creator_link,
...
...
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