This commit is contained in:
shenjian@fangjia.com
2023-06-01 16:44:58 +08:00
parent 7f8e044640
commit 6fee8096dd
+4 -1
View File
@@ -19,4 +19,7 @@ FROM etl.dwd_company c
LEFT JOIN (
SELECT unified_code, argMax(mail_address, year) mail_address, argMax(year, year) new_year FROM etl.company_report GROUP BY unified_code
) cr ON c.unified_code=cr.unified_code
WHERE cr.mail_address!='' and cr.mail_address is not null;
WHERE cr.mail_address!='' and cr.mail_address is not null;
# 清洗企业通信地址
ALTER TABLE etl.dwd_company update mail_address1=replaceRegexpAll(mail_address, '^(.{2,}(省|自治区))?(.{2,}市)?(.{2,}(区|县))?', '') WHERE 1=1