{"id":69641,"date":"2026-01-31T23:32:45","date_gmt":"2026-01-31T15:32:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/69641.html"},"modified":"2026-01-31T23:32:45","modified_gmt":"2026-01-31T15:32:45","slug":"27-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e5%b0%9a%e7%a1%85%e8%b0%b7%e6%95%b0%e4%bb%93%e6%90%ad%e5%bb%ba-%e6%95%b0%e6%8d%ae%e4%bb%93%e5%ba%93dwd%e5%b1%82%e4%bb%8b%e7%bb%8d%e5%8f%8a%e5%85%b6%e4%ba%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/69641.html","title":{"rendered":"27-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u6570\u636e\u4ed3\u5e93DWD\u5c42\u4ecb\u7ecd\u53ca\u5176\u4e8b\u52a1\u8868\uff08\u884c\u4e3a\uff09\u76f8\u5173\u6982\u5ff5"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"-toc\" style=\"margin-left:40px\">\n<p id=\"%E4%B8%80%E3%80%81DWD%E5%B1%82%E4%BB%8B%E7%BB%8D-toc\" style=\"margin-left:40px\">\u4e00\u3001DWD\u5c42\u4ecb\u7ecd<\/p>\n<p id=\"%E4%B8%93%E4%B8%9A%E8%A7%A3%E9%87%8A%EF%BC%9A-toc\" style=\"margin-left:80px\">\u4e13\u4e1a\u89e3\u91ca&#xff1a;<\/p>\n<p id=\"%E9%80%9A%E4%BF%97%E8%A7%A3%E9%87%8A%EF%BC%9A-toc\" style=\"margin-left:80px\">\u901a\u4fd7\u89e3\u91ca&#xff1a;<\/p>\n<p id=\"%E4%B8%BE%E4%BE%8B%EF%BC%9A%E7%94%B5%E5%95%86%E8%AE%A2%E5%8D%95%E5%A4%84%E7%90%86-toc\" style=\"margin-left:80px\">\u4e3e\u4f8b&#xff1a;\u7535\u5546\u8ba2\u5355\u5904\u7406<\/p>\n<p id=\"%E4%BA%8C%E3%80%81DWD%E5%B1%82%E4%BA%8B%E5%8A%A1%E8%A1%A8%E8%AF%A6%E8%A7%A3-toc\" style=\"margin-left:40px\">\u4e8c\u3001DWD\u5c42\u4e8b\u52a1\u8868\u8be6\u89e3<\/p>\n<p id=\"1.%20%E7%BB%B4%E5%BA%A6%E4%B8%8E%E5%BA%A6%E9%87%8F%E5%80%BC-toc\" style=\"margin-left:80px\">1. \u7ef4\u5ea6\u4e0e\u5ea6\u91cf\u503c<\/p>\n<p id=\"2.%20%E5%AD%98%E5%82%A8%E6%96%B9%E5%BC%8F-toc\" style=\"margin-left:80px\">2. \u5b58\u50a8\u65b9\u5f0f<\/p>\n<p id=\"3.%20%E5%8E%8B%E7%BC%A9%E6%96%B9%E5%BC%8F-toc\" style=\"margin-left:80px\">3. \u538b\u7f29\u65b9\u5f0f<\/p>\n<p id=\"4.%20%E6%95%B0%E6%8D%AE%E5%9F%9F%E5%88%92%E5%88%86-toc\" style=\"margin-left:80px\">4. \u6570\u636e\u57df\u5212\u5206<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E4%BA%8B%E5%8A%A1%E8%A1%A8%E5%88%86%E7%B1%BB%E8%AF%A6%E8%A7%A3-toc\" style=\"margin-left:40px\">\u4e09\u3001\u4e8b\u52a1\u8868\u5206\u7c7b\u8be6\u89e3<\/p>\n<p id=\"1.%20%E4%BA%8B%E5%8A%A1%E4%BA%8B%E5%AE%9E%E8%A1%A8%EF%BC%88Transaction%20Fact%20Table%EF%BC%89-toc\" style=\"margin-left:80px\">1. \u4e8b\u52a1\u4e8b\u5b9e\u8868&#xff08;Transaction Fact Table&#xff09;<\/p>\n<p id=\"2.%20%E5%91%A8%E6%9C%9F%E5%BF%AB%E7%85%A7%E4%BA%8B%E5%AE%9E%E8%A1%A8%EF%BC%88Periodic%20Snapshot%20Fact%20Table%EF%BC%89-toc\" style=\"margin-left:80px\">2. \u5468\u671f\u5feb\u7167\u4e8b\u5b9e\u8868&#xff08;Periodic Snapshot Fact Table&#xff09;<\/p>\n<p id=\"3.%20%E7%B4%AF%E7%A7%AF%E5%BF%AB%E7%85%A7%E4%BA%8B%E5%AE%9E%E8%A1%A8%EF%BC%88Accumulating%20Snapshot%20Fact%20Table%EF%BC%89-toc\" style=\"margin-left:80px\">3. \u7d2f\u79ef\u5feb\u7167\u4e8b\u5b9e\u8868&#xff08;Accumulating Snapshot Fact Table&#xff09;<\/p>\n<p id=\"%E5%9B%9B%E3%80%81%E4%B8%89%E7%B1%BB%E4%BA%8B%E5%AE%9E%E8%A1%A8%E5%AF%B9%E6%AF%94%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:40px\">\u56db\u3001\u4e09\u7c7b\u4e8b\u5b9e\u8868\u5bf9\u6bd4\u603b\u7ed3<\/p>\n<p id=\"%E4%BA%94%E3%80%81%E5%AE%9E%E9%99%85%E4%B8%9A%E5%8A%A1%E6%A1%88%E4%BE%8B%EF%BC%9A%E7%94%B5%E5%95%86%E8%AE%A2%E5%8D%95%E5%85%A8%E6%B5%81%E7%A8%8B-toc\" style=\"margin-left:40px\">\u4e94\u3001\u5b9e\u9645\u4e1a\u52a1\u6848\u4f8b&#xff1a;\u7535\u5546\u8ba2\u5355\u5168\u6d41\u7a0b<\/p>\n<p id=\"%E5%85%AD%E3%80%81%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5%E5%BB%BA%E8%AE%AE-toc\" style=\"margin-left:40px\">\u516d\u3001\u6700\u4f73\u5b9e\u8df5\u5efa\u8bae<\/p>\n<p id=\"1.%C2%A0%E8%AE%BE%E8%AE%A1%E5%8E%9F%E5%88%99-toc\" style=\"margin-left:80px\">1.\u00a0\u8bbe\u8ba1\u539f\u5219<\/p>\n<p id=\"2.%C2%A0%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96-toc\" style=\"margin-left:80px\">2.\u00a0\u6027\u80fd\u4f18\u5316<\/p>\n<p id=\"3.%C2%A0%E6%95%B0%E6%8D%AE%E8%B4%A8%E9%87%8F%E4%BF%9D%E9%9A%9C-toc\" style=\"margin-left:80px\">3.\u00a0\u6570\u636e\u8d28\u91cf\u4fdd\u969c<\/p>\n<hr id=\"hr-toc\" \/>\n<h3 id=\"%E4%B8%80%E3%80%81DWD%E5%B1%82%E4%BB%8B%E7%BB%8D\">\u4e00\u3001DWD\u5c42\u4ecb\u7ecd<\/h3>\n<h4 id=\"%E4%B8%93%E4%B8%9A%E8%A7%A3%E9%87%8A%EF%BC%9A\">\u4e13\u4e1a\u89e3\u91ca&#xff1a;<\/h4>\n<p>DWD\u5c42&#xff08;Data Warehouse Detail&#xff0c;\u6570\u636e\u4ed3\u5e93\u660e\u7ec6\u5c42&#xff09;\u662f\u6570\u636e\u4ed3\u5e93\u7684\u6838\u5fc3\u5c42\u6b21&#xff0c;\u4f4d\u4e8eODS\u5c42\u4e4b\u540e\u3002\u5b83\u4e3b\u8981\u627f\u62c5\u4ee5\u4e0b\u804c\u8d23&#xff1a;<\/p>\n<li>\n<p>\u6570\u636e\u6e05\u6d17\u4e0e\u6807\u51c6\u5316&#xff1a;\u6e05\u6d17\u810f\u6570\u636e\u3001\u5904\u7406\u7a7a\u503c\u3001\u7edf\u4e00\u683c\u5f0f<\/p>\n<\/li>\n<li>\n<p>\u7ef4\u5ea6\u9000\u5316&#xff1a;\u5c06\u5e38\u7528\u7ef4\u5ea6\u5b57\u6bb5\u5197\u4f59\u5230\u4e8b\u5b9e\u8868\u4e2d<\/p>\n<\/li>\n<li>\n<p>\u4e8b\u5b9e\u8868\u6784\u5efa&#xff1a;\u6839\u636e\u4e1a\u52a1\u8fc7\u7a0b\u6784\u5efa\u5404\u7c7b\u4e8b\u5b9e\u8868<\/p>\n<\/li>\n<li>\n<p>\u6570\u636e\u4e00\u81f4\u6027\u4fdd\u8bc1&#xff1a;\u7edf\u4e00\u7f16\u7801\u3001\u5904\u7406\u65f6\u533a\u3001\u8f6c\u6362\u5ea6\u91cf\u5355\u4f4d<\/p>\n<\/li>\n<li>\n<p>\u6570\u636e\u7c92\u5ea6\u786e\u5b9a&#xff1a;\u5b9a\u4e49\u6bcf\u6761\u8bb0\u5f55\u4ee3\u8868\u7684\u4e1a\u52a1\u542b\u4e49<\/p>\n<\/li>\n<h4 id=\"%E9%80%9A%E4%BF%97%E8%A7%A3%E9%87%8A%EF%BC%9A\">\u901a\u4fd7\u89e3\u91ca&#xff1a;<\/h4>\n<p>DWD\u5c42\u5c31\u50cf\u53a8\u623f\u7684\u5907\u83dc\u533a&#xff0c;\u628a\u4ece\u83dc\u5e02\u573a&#xff08;ODS\u5c42&#xff09;\u4e70\u6765\u7684\u539f\u6750\u6599\u8fdb\u884c&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6e05\u6d17&#xff08;\u53bb\u6389\u6ce5\u6c99\u574f\u53f6&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5207\u914d&#xff08;\u7edf\u4e00\u5f62\u72b6\u5927\u5c0f&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5206\u88c5&#xff08;\u6309\u83dc\u54c1\u9700\u8981\u5907\u6599&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u8fd9\u6837\u53a8\u5e08&#xff08;DWS\u5c42&#xff09;\u53ef\u4ee5\u76f4\u63a5\u53d6\u7528&#xff0c;\u4e0d\u7528\u6bcf\u6b21\u4ece\u539f\u59cb\u6750\u6599\u5f00\u59cb\u5904\u7406\u3002<\/p>\n<h4 id=\"%E4%B8%BE%E4%BE%8B%EF%BC%9A%E7%94%B5%E5%95%86%E8%AE%A2%E5%8D%95%E5%A4%84%E7%90%86\">\u4e3e\u4f8b&#xff1a;\u7535\u5546\u8ba2\u5355\u5904\u7406<\/h4>\n<p>ODS\u539f\u59cb\u6570\u636e&#xff1a; \u8ba2\u5355\u8868&#xff1a;order_id&#061;1001, user_id&#061;&#034;U001&#034;, amount&#061;&#034;100.00\u5143&#034;, create_time&#061;&#034;2023-01-01 12:30:00&#034; \u7528\u6237\u8868&#xff1a;user_id&#061;1, name&#061;&#034;\u5f20\u4e09&#034;, gender&#061;&#034;M&#034;<\/p>\n<p>DWD\u5904\u7406\u540e&#xff1a; order_id&#061;1001, user_key&#061;10001, user_name&#061;&#034;\u5f20\u4e09&#034;, gender&#061;&#034;\u7537&#034;, amount&#061;100.00, create_date_key&#061;20230101, create_time&#061;&#034;12:30:00&#034;<\/p>\n<h3 id=\"%E4%BA%8C%E3%80%81DWD%E5%B1%82%E4%BA%8B%E5%8A%A1%E8%A1%A8%E8%AF%A6%E8%A7%A3\">\u4e8c\u3001DWD\u5c42\u4e8b\u52a1\u8868\u8be6\u89e3<\/h3>\n<h4 id=\"1.%20%E7%BB%B4%E5%BA%A6%E4%B8%8E%E5%BA%A6%E9%87%8F%E5%80%BC\">1. \u7ef4\u5ea6\u4e0e\u5ea6\u91cf\u503c<\/h4>\n<p>\u4e13\u4e1a\u89e3\u91ca&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7ef4\u5ea6&#xff1a;\u63cf\u8ff0\u4e1a\u52a1\u8fc7\u7a0b\u7684\u4e0a\u4e0b\u6587\u73af\u5883&#xff0c;\u5982\u65f6\u95f4\u3001\u5730\u70b9\u3001\u4eba\u7269\u3001\u5546\u54c1\u7b49<\/p>\n<\/li>\n<li>\n<p>\u5ea6\u91cf\u503c&#xff1a;\u53ef\u91cf\u5316\u7684\u4e1a\u52a1\u6570\u503c&#xff0c;\u53ef\u8fdb\u884c\u805a\u5408\u8ba1\u7b97&#xff0c;\u5982\u91d1\u989d\u3001\u6570\u91cf\u3001\u6b21\u6570<\/p>\n<\/li>\n<\/ul>\n<p>\u901a\u4fd7\u89e3\u91ca&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7ef4\u5ea6&#xff1a;\u56de\u7b54&#034;\u8c01&#xff1f;\u4ec0\u4e48\u65f6\u5019&#xff1f;\u5728\u54ea\u91cc&#xff1f;&#034;\u7b49\u63cf\u8ff0\u6027\u95ee\u9898<\/p>\n<\/li>\n<li>\n<p>\u5ea6\u91cf\u503c&#xff1a;\u56de\u7b54&#034;\u591a\u5c11&#xff1f;\u591a\u5927&#xff1f;\u591a\u9891\u7e41&#xff1f;&#034;\u7b49\u6570\u503c\u95ee\u9898<\/p>\n<\/li>\n<\/ul>\n<p>\u7535\u5546\u8ba2\u5355\u793a\u4f8b&#xff1a;<\/p>\n<p>CREATE TABLE dwd.fact_order_detail (<br \/>\n    &#8212; \u7ef4\u5ea6&#xff08;\u63cf\u8ff0\u6027\u5b57\u6bb5&#xff09;<br \/>\n    order_id BIGINT,          &#8212; \u8ba2\u5355ID<br \/>\n    user_key INT,             &#8212; \u7528\u6237\u7ef4\u5ea6\u4ee3\u7406\u952e<br \/>\n    product_key INT,          &#8212; \u5546\u54c1\u7ef4\u5ea6\u4ee3\u7406\u952e<br \/>\n    date_key INT,             &#8212; \u65e5\u671f\u7ef4\u5ea6\u952e&#xff08;\u598220230101&#xff09;<br \/>\n    store_key INT,            &#8212; \u5e97\u94fa\u7ef4\u5ea6\u952e<\/p>\n<p>    &#8212; \u9000\u5316\u7ef4\u5ea6&#xff08;\u5e38\u7528\u7ef4\u5ea6\u5b57\u6bb5\u76f4\u63a5\u5b58\u50a8&#xff09;<br \/>\n    user_level VARCHAR(10),   &#8212; \u7528\u6237\u7b49\u7ea7<br \/>\n    product_category VARCHAR(50), &#8212; \u5546\u54c1\u5206\u7c7b<\/p>\n<p>    &#8212; \u5ea6\u91cf\u503c&#xff08;\u53ef\u8ba1\u7b97\u7684\u6570\u503c&#xff09;<br \/>\n    order_amount DECIMAL(10,2),  &#8212; \u8ba2\u5355\u91d1\u989d&#xff08;\u53ef\u6c42\u548c&#xff09;<br \/>\n    product_count INT,           &#8212; \u5546\u54c1\u6570\u91cf&#xff08;\u53ef\u6c42\u548c&#xff09;<br \/>\n    discount_amount DECIMAL(10,2) &#8212; \u4f18\u60e0\u91d1\u989d&#xff08;\u53ef\u6c42\u548c&#xff09;<br \/>\n); <\/p>\n<h4 id=\"2.%20%E5%AD%98%E5%82%A8%E6%96%B9%E5%BC%8F\">2. \u5b58\u50a8\u65b9\u5f0f<\/h4>\n<p>\u4e13\u4e1a\u9009\u62e9&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5217\u5f0f\u5b58\u50a8&#xff1a;Parquet\u3001ORC\u683c\u5f0f&#xff0c;\u9002\u5408\u5206\u6790\u67e5\u8be2<\/p>\n<\/li>\n<li>\n<p>\u5206\u533a\u7b56\u7565&#xff1a;\u6309\u65f6\u95f4&#xff08;\u5929\/\u6708&#xff09;\u5206\u533a&#xff0c;\u63d0\u9ad8\u67e5\u8be2\u6548\u7387<\/p>\n<\/li>\n<li>\n<p>\u5206\u6876\u7b56\u7565&#xff1a;\u5bf9\u5e38\u7528\u67e5\u8be2\u5b57\u6bb5\u5206\u6876&#xff0c;\u4f18\u5316JOIN\u6027\u80fd<\/p>\n<\/li>\n<\/ul>\n<p>\u901a\u4fd7\u89e3\u91ca&#xff1a; \u5c31\u50cf\u56fe\u4e66\u9986\u7684\u4e66\u67b6\u7ba1\u7406&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5217\u5f0f\u5b58\u50a8&#xff1a;\u628a\u6240\u6709\u4e66\u7684\u4f5c\u8005\u4fe1\u606f\u653e\u4e00\u8d77&#xff0c;\u628a\u6240\u6709\u4e66\u540d\u653e\u4e00\u8d77&#xff0c;\u67e5\u4f5c\u8005\u65f6\u53ea\u9700\u770b\u4e00\u4e2a\u533a\u57df<\/p>\n<\/li>\n<li>\n<p>\u5206\u533a&#xff1a;\u6309\u5e74\u4efd\u5206\u4e66\u67b6&#xff0c;\u67e52023\u5e74\u6570\u636e\u53ea\u9700\u770b\u4e00\u4e2a\u4e66\u67b6<\/p>\n<\/li>\n<li>\n<p>\u5206\u6876&#xff1a;\u6309\u4f5c\u8005\u59d3\u6c0f\u5b57\u6bcd\u5206\u683c&#xff0c;\u627e&#034;\u5f20&#034;\u59d3\u4f5c\u8005\u5f88\u5feb<\/p>\n<\/li>\n<\/ul>\n<p>\u5b58\u50a8\u793a\u4f8b&#xff1a;<\/p>\n<p>&#8212; Parquet\u5217\u5f0f\u5b58\u50a8 &#043; \u65e5\u671f\u5206\u533a &#043; \u7528\u6237\u5206\u6876<br \/>\nCREATE TABLE dwd.fact_order_detail (<br \/>\n    &#8212; \u5b57\u6bb5\u5b9a\u4e49&#8230;<br \/>\n)<br \/>\nPARTITIONED BY (dt STRING)          &#8212; \u6309\u5929\u5206\u533a<br \/>\nCLUSTERED BY (user_key) INTO 10 BUCKETS  &#8212; \u6309\u7528\u6237\u520610\u4e2a\u6876<br \/>\nSTORED AS PARQUET                   &#8212; Parquet\u683c\u5f0f<br \/>\nTBLPROPERTIES (<br \/>\n    &#039;parquet.compression&#039;&#061;&#039;SNAPPY&#039;, &#8212; \u538b\u7f29\u65b9\u5f0f<br \/>\n    &#039;parquet.block.size&#039;&#061;&#039;256MB&#039;    &#8212; \u5757\u5927\u5c0f<br \/>\n); <\/p>\n<h4 id=\"3.%20%E5%8E%8B%E7%BC%A9%E6%96%B9%E5%BC%8F\">3. \u538b\u7f29\u65b9\u5f0f<\/h4>\n<p>\u4e13\u4e1a\u65b9\u6848\u5bf9\u6bd4&#xff1a;<\/p>\n<table>\n<tr>\u538b\u7f29\u7b97\u6cd5\u538b\u7f29\u6bd4\u538b\u7f29\u901f\u5ea6\u89e3\u538b\u901f\u5ea6\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>Snappy<\/td>\n<td>\u4e2d\u7b49<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50\u2b50<\/td>\n<td>\u5b9e\u65f6\u67e5\u8be2&#xff0c;\u9700\u8981\u5feb\u901f\u8bfb\u5199<\/td>\n<\/tr>\n<tr>\n<td>Gzip<\/td>\n<td>\u9ad8<\/td>\n<td>\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50\u2b50<\/td>\n<td>\u5b58\u50a8\u4f18\u5316&#xff0c;\u4e0d\u5e38\u67e5\u8be2\u7684\u5386\u53f2\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>LZO<\/td>\n<td>\u4e2d\u7b49<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50<\/td>\n<td>Hadoop\u751f\u6001&#xff0c;\u5e73\u8861\u578b\u9009\u62e9<\/td>\n<\/tr>\n<tr>\n<td>ZSTD<\/td>\n<td>\u9ad8<\/td>\n<td>\u2b50\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50<\/td>\n<td>\u65b0\u63a8\u8350\u65b9\u6848&#xff0c;\u5e73\u8861\u6027\u597d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u901a\u4fd7\u89e3\u91ca&#xff1a; \u5c31\u50cf\u6253\u5305\u884c\u674e&#xff1a;<\/p>\n<ul>\n<li>\n<p>Snappy&#xff1a;\u5feb\u901f\u6253\u5305&#xff0c;\u867d\u7136\u7bb1\u5b50\u6709\u70b9\u5927&#xff0c;\u4f46\u53d6\u4e1c\u897f\u5feb<\/p>\n<\/li>\n<li>\n<p>Gzip&#xff1a;\u4ed4\u7ec6\u6253\u5305&#xff0c;\u7bb1\u5b50\u6700\u5c0f&#xff0c;\u4f46\u6253\u5305\u548c\u62c6\u5305\u90fd\u6162<\/p>\n<\/li>\n<li>\n<p>ZSTD&#xff1a;\u65b0\u578b\u667a\u80fd\u6253\u5305&#xff0c;\u7bb1\u5b50\u5c0f\u4e14\u901f\u5ea6\u4e0d\u6162<\/p>\n<\/li>\n<\/ul>\n<p>\u538b\u7f29\u8bbe\u7f6e\u793a\u4f8b&#xff1a;<\/p>\n<p>&#8212; Hive\u4e2d\u8bbe\u7f6e\u538b\u7f29<br \/>\nSET hive.exec.compress.output&#061;true;<br \/>\nSET mapred.output.compression.codec&#061;org.apache.hadoop.io.compress.SnappyCodec;<\/p>\n<p>&#8212; \u5efa\u8868\u65f6\u6307\u5b9a\u538b\u7f29<br \/>\nCREATE TABLE dwd.fact_order_detail<br \/>\nSTORED AS PARQUET<br \/>\nTBLPROPERTIES (&#039;parquet.compression&#039;&#061;&#039;SNAPPY&#039;); <\/p>\n<h4 id=\"4.%20%E6%95%B0%E6%8D%AE%E5%9F%9F%E5%88%92%E5%88%86\">4. \u6570\u636e\u57df\u5212\u5206<\/h4>\n<p>\u4e13\u4e1a\u7684\u6570\u636e\u57df\u8bbe\u8ba1&#xff1a;<\/p>\n<p>&#8212; \u7535\u5546\u5e73\u53f0\u5178\u578b\u6570\u636e\u57df\u5212\u5206<br \/>\ndwd.trade_order_detail          &#8212; \u4ea4\u6613\u57df&#xff1a;\u8ba2\u5355\u660e\u7ec6<br \/>\ndwd.trade_payment_detail        &#8212; \u4ea4\u6613\u57df&#xff1a;\u652f\u4ed8\u660e\u7ec6<br \/>\ndwd.trade_refund_detail         &#8212; \u4ea4\u6613\u57df&#xff1a;\u9000\u6b3e\u660e\u7ec6<br \/>\ndwd.user_behavior_log           &#8212; \u7528\u6237\u57df&#xff1a;\u884c\u4e3a\u65e5\u5fd7<br \/>\ndwd.product_sku_daily           &#8212; \u5546\u54c1\u57df&#xff1a;SKU\u65e5\u7c92\u5ea6<br \/>\ndwd.marketing_coupon_use        &#8212; \u8425\u9500\u57df&#xff1a;\u4f18\u60e0\u5238\u4f7f\u7528<br \/>\ndwd.logistics_delivery_trace    &#8212; \u7269\u6d41\u57df&#xff1a;\u914d\u9001\u8f68\u8ff9 <\/p>\n<p>\u901a\u4fd7\u89e3\u91ca&#xff1a; \u5c31\u50cf\u516c\u53f8\u7684\u90e8\u95e8\u5212\u5206&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4ea4\u6613\u57df&#xff1a;\u9500\u552e\u90e8\u95e8&#xff0c;\u8d1f\u8d23\u8ba2\u5355\u3001\u652f\u4ed8<\/p>\n<\/li>\n<li>\n<p>\u7528\u6237\u57df&#xff1a;\u5ba2\u670d\u90e8\u95e8&#xff0c;\u7ba1\u7406\u7528\u6237\u4fe1\u606f\u884c\u4e3a<\/p>\n<\/li>\n<li>\n<p>\u5546\u54c1\u57df&#xff1a;\u91c7\u8d2d\u90e8\u95e8&#xff0c;\u7ba1\u7406\u5546\u54c1\u5e93\u5b58<\/p>\n<\/li>\n<li>\n<p>\u8425\u9500\u57df&#xff1a;\u5e02\u573a\u90e8\u95e8&#xff0c;\u7ba1\u7406\u6d3b\u52a8\u4f18\u60e0<\/p>\n<\/li>\n<li>\n<p>\u7269\u6d41\u57df&#xff1a;\u7269\u6d41\u90e8\u95e8&#xff0c;\u7ba1\u7406\u914d\u9001<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"%E4%B8%89%E3%80%81%E4%BA%8B%E5%8A%A1%E8%A1%A8%E5%88%86%E7%B1%BB%E8%AF%A6%E8%A7%A3\">\u4e09\u3001\u4e8b\u52a1\u8868\u5206\u7c7b\u8be6\u89e3<\/h3>\n<h4 id=\"1.%20%E4%BA%8B%E5%8A%A1%E4%BA%8B%E5%AE%9E%E8%A1%A8%EF%BC%88Transaction%20Fact%20Table%EF%BC%89\">1. \u4e8b\u52a1\u4e8b\u5b9e\u8868&#xff08;Transaction Fact Table&#xff09;<\/h4>\n<p>\u4e13\u4e1a\u89e3\u91ca&#xff1a; \u8bb0\u5f55\u4e1a\u52a1\u8fc7\u7a0b\u53d1\u751f\u7684\u4e8b\u4ef6&#xff0c;\u6bcf\u884c\u5bf9\u5e94\u4e00\u4e2a\u4e1a\u52a1\u4e8b\u4ef6\u3002\u7279\u70b9\u662f&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6570\u636e\u4e00\u65e6\u4ea7\u751f\u4e0d\u518d\u53d8\u5316<\/p>\n<\/li>\n<li>\n<p>\u7c92\u5ea6\u6700\u7ec6&#xff0c;\u8bb0\u5f55\u539f\u59cb\u4e1a\u52a1\u4e8b\u4ef6<\/p>\n<\/li>\n<li>\n<p>\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u4e8b\u4ef6\u53d1\u751f\u60c5\u51b5<\/p>\n<\/li>\n<\/ul>\n<p>\u901a\u4fd7\u89e3\u91ca&#xff1a; \u5c31\u50cf\u94f6\u884c\u7684\u6d41\u6c34\u8d26&#xff0c;\u8bb0\u5f55\u6bcf\u4e00\u7b14\u5b58\u53d6\u6b3e&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5b58100\u5143 \u2192 \u8bb0\u4e00\u6761<\/p>\n<\/li>\n<li>\n<p>\u53d650\u5143 \u2192 \u8bb0\u4e00\u6761<\/p>\n<\/li>\n<li>\n<p>\u6c38\u4e0d\u4fee\u6539&#xff0c;\u53ea\u8ffd\u52a0\u65b0\u8bb0\u5f55<\/p>\n<\/li>\n<\/ul>\n<p>\u521b\u5efa\u6b65\u9aa4&#xff1a;<\/p>\n<p>&#8212; \u6b65\u9aa41&#xff1a;\u521b\u5efa\u8868\u7ed3\u6784<br \/>\nCREATE TABLE dwd.fact_order_transaction (<br \/>\n    &#8212; \u4ee3\u7406\u952e\u548c\u7ef4\u5ea6\u952e<br \/>\n    order_detail_key BIGINT COMMENT &#039;\u8ba2\u5355\u660e\u7ec6\u4ee3\u7406\u952e&#039;,<br \/>\n    order_id STRING COMMENT &#039;\u8ba2\u5355\u4e1a\u52a1ID&#039;,<br \/>\n    user_key INT COMMENT &#039;\u7528\u6237\u7ef4\u5ea6\u4ee3\u7406\u952e&#039;,<br \/>\n    product_key INT COMMENT &#039;\u5546\u54c1\u7ef4\u5ea6\u4ee3\u7406\u952e&#039;,<br \/>\n    date_key INT COMMENT &#039;\u65e5\u671f\u7ef4\u5ea6\u4ee3\u7406\u952e&#039;,<br \/>\n    time_key INT COMMENT &#039;\u65f6\u95f4\u7ef4\u5ea6\u4ee3\u7406\u952e(\u5c0f\u65f6\u5206\u949f)&#039;,<\/p>\n<p>    &#8212; \u9000\u5316\u7ef4\u5ea6<br \/>\n    user_level STRING COMMENT &#039;\u7528\u6237\u7b49\u7ea7&#039;,<br \/>\n    product_category STRING COMMENT &#039;\u5546\u54c1\u5206\u7c7b&#039;,<\/p>\n<p>    &#8212; \u5ea6\u91cf\u503c<br \/>\n    order_amount DECIMAL(10,2) COMMENT &#039;\u8ba2\u5355\u91d1\u989d&#039;,<br \/>\n    product_quantity INT COMMENT &#039;\u5546\u54c1\u6570\u91cf&#039;,<br \/>\n    discount_amount DECIMAL(10,2) COMMENT &#039;\u4f18\u60e0\u91d1\u989d&#039;,<\/p>\n<p>    &#8212; \u5206\u533a\u5b57\u6bb5<br \/>\n    dt STRING COMMENT &#039;\u5206\u533a\u65e5\u671f&#039;<br \/>\n)<br \/>\nPARTITIONED BY (dt)<br \/>\nSTORED AS PARQUET;<\/p>\n<p>&#8212; \u6b65\u9aa42&#xff1a;ETL\u5904\u7406\u903b\u8f91&#xff08;\u4f2a\u4ee3\u7801&#xff09;<br \/>\n1. \u4eceODS\u5c42\u62bd\u53d6\u8ba2\u5355\u539f\u59cb\u6570\u636e<br \/>\n2. \u6e05\u6d17&#xff1a;\u53bb\u91cd\u3001\u53bb\u7a7a\u503c\u3001\u683c\u5f0f\u5316\u91d1\u989d<br \/>\n3. \u5173\u8054\u7ef4\u5ea6&#xff1a;\u7528\u6237\u7ef4\u5ea6\u83b7\u53d6user_key&#xff0c;\u5546\u54c1\u7ef4\u5ea6\u83b7\u53d6product_key<br \/>\n4. \u751f\u6210\u4ee3\u7406\u952e&#xff1a;order_detail_key &#061; \u65f6\u95f4\u6233 &#043; \u5e8f\u5217\u53f7<br \/>\n5. \u6570\u636e\u8f6c\u6362&#xff1a;\u91d1\u989d\u5355\u4f4d\u7edf\u4e00\u3001\u65f6\u95f4\u683c\u5f0f\u6807\u51c6\u5316<br \/>\n6. \u5199\u5165\u5206\u533a&#xff1a;\u6309dt&#061;YYYY-MM-DD\u5206\u533a\u5b58\u50a8 <\/p>\n<h4 id=\"2.%20%E5%91%A8%E6%9C%9F%E5%BF%AB%E7%85%A7%E4%BA%8B%E5%AE%9E%E8%A1%A8%EF%BC%88Periodic%20Snapshot%20Fact%20Table%EF%BC%89\">2. \u5468\u671f\u5feb\u7167\u4e8b\u5b9e\u8868&#xff08;Periodic Snapshot Fact Table&#xff09;<\/h4>\n<p>\u4e13\u4e1a\u89e3\u91ca&#xff1a; \u6309\u56fa\u5b9a\u65f6\u95f4\u95f4\u9694\u8bb0\u5f55\u4e1a\u52a1\u72b6\u6001&#xff0c;\u5982\u6bcf\u65e5\u3001\u6bcf\u5468\u3001\u6bcf\u6708\u5feb\u7167\u3002\u7279\u70b9\u662f&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5b9a\u671f\u8bb0\u5f55\u72b6\u6001&#xff0c;\u65e0\u8bba\u662f\u5426\u6709\u53d8\u5316<\/p>\n<\/li>\n<li>\n<p>\u7528\u4e8e\u5206\u6790\u8d8b\u52bf\u548c\u72b6\u6001\u53d8\u5316<\/p>\n<\/li>\n<li>\n<p>\u5e38\u89c1\u4e8e\u4f59\u989d\u3001\u5e93\u5b58\u7b49\u573a\u666f<\/p>\n<\/li>\n<\/ul>\n<p>\u901a\u4fd7\u89e3\u91ca&#xff1a; \u5c31\u50cf\u6bcf\u5929\u4e0b\u73ed\u524d\u62cd\u4e00\u5f20\u4ed3\u5e93\u5e93\u5b58\u7167\u7247&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5468\u4e00&#xff1a;\u5e93\u5b58100\u4ef6 \u2192 \u8bb0\u5f55<\/p>\n<\/li>\n<li>\n<p>\u5468\u4e8c&#xff1a;\u5e93\u5b5895\u4ef6 \u2192 \u8bb0\u5f55<\/p>\n<\/li>\n<li>\n<p>\u5468\u4e09&#xff1a;\u5e93\u5b5898\u4ef6 \u2192 \u8bb0\u5f55<\/p>\n<\/li>\n<li>\n<p>\u65e0\u8bba\u662f\u5426\u53d8\u5316&#xff0c;\u6bcf\u5929\u90fd\u8981\u8bb0\u5f55<\/p>\n<\/li>\n<\/ul>\n<p>\u521b\u5efa\u6b65\u9aa4&#xff1a;<\/p>\n<p>&#8212; \u6b65\u9aa41&#xff1a;\u521b\u5efa\u5546\u54c1\u5e93\u5b58\u65e5\u5feb\u7167\u8868<br \/>\nCREATE TABLE dwd.fact_inventory_daily_snapshot (<br \/>\n    inventory_snapshot_key BIGINT COMMENT &#039;\u5e93\u5b58\u5feb\u7167\u4ee3\u7406\u952e&#039;,<br \/>\n    product_key INT COMMENT &#039;\u5546\u54c1\u7ef4\u5ea6\u952e&#039;,<br \/>\n    warehouse_key INT COMMENT &#039;\u4ed3\u5e93\u7ef4\u5ea6\u952e&#039;,<br \/>\n    date_key INT COMMENT &#039;\u65e5\u671f\u952e&#039;,<\/p>\n<p>    &#8212; \u5ea6\u91cf\u503c&#xff08;\u5f53\u5929\u7684\u72b6\u6001&#xff09;<br \/>\n    opening_quantity INT COMMENT &#039;\u671f\u521d\u5e93\u5b58&#039;,<br \/>\n    closing_quantity INT COMMENT &#039;\u671f\u672b\u5e93\u5b58&#039;,<br \/>\n    incoming_quantity INT COMMENT &#039;\u5165\u5e93\u6570\u91cf&#039;,<br \/>\n    outgoing_quantity INT COMMENT &#039;\u51fa\u5e93\u6570\u91cf&#039;,<\/p>\n<p>    &#8212; \u5206\u533a<br \/>\n    dt STRING COMMENT &#039;\u5feb\u7167\u65e5\u671f&#039;<br \/>\n)<br \/>\nPARTITIONED BY (dt)<br \/>\nSTORED AS PARQUET;<\/p>\n<p>&#8212; \u6b65\u9aa42&#xff1a;ETL\u5904\u7406\u6d41\u7a0b<br \/>\n1. \u786e\u5b9a\u5feb\u7167\u65f6\u95f4\u70b9&#xff1a;\u6bcf\u592923:59:59<br \/>\n2. \u83b7\u53d6\u671f\u521d\u5e93\u5b58&#xff1a;\u6628\u5929\u7684\u671f\u672b\u5e93\u5b58<br \/>\n3. \u8ba1\u7b97\u5f53\u65e5\u53d8\u52a8&#xff1a;\u6c47\u603b\u5f53\u5929\u7684\u51fa\u5165\u5e93\u8bb0\u5f55<br \/>\n4. \u8ba1\u7b97\u671f\u672b\u5e93\u5b58&#xff1a;\u671f\u521d &#043; \u5165\u5e93 &#8211; \u51fa\u5e93<br \/>\n5. \u751f\u6210\u5feb\u7167\u8bb0\u5f55&#xff1a;\u6bcf\u4e2a\u5546\u54c1\u5728\u6bcf\u4e2a\u4ed3\u5e93\u751f\u6210\u4e00\u6761\u8bb0\u5f55<br \/>\n6. \u5f02\u5e38\u5904\u7406&#xff1a;\u5904\u7406\u8d1f\u5e93\u5b58\u3001\u6570\u636e\u5ef6\u8fdf\u7b49\u60c5\u51b5 <\/p>\n<h4 id=\"3.%20%E7%B4%AF%E7%A7%AF%E5%BF%AB%E7%85%A7%E4%BA%8B%E5%AE%9E%E8%A1%A8%EF%BC%88Accumulating%20Snapshot%20Fact%20Table%EF%BC%89\">3. \u7d2f\u79ef\u5feb\u7167\u4e8b\u5b9e\u8868&#xff08;Accumulating Snapshot Fact Table&#xff09;<\/h4>\n<p>\u4e13\u4e1a\u89e3\u91ca&#xff1a; \u8bb0\u5f55\u6709\u751f\u547d\u5468\u671f\u7684\u4e1a\u52a1\u8fc7\u7a0b&#xff0c;\u4ece\u5f00\u59cb\u5230\u7ed3\u675f\u4e0d\u65ad\u66f4\u65b0\u3002\u7279\u70b9\u662f&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4e00\u884c\u8bb0\u5f55\u4ee3\u8868\u4e00\u4e2a\u5b8c\u6574\u4e1a\u52a1\u8fc7\u7a0b<\/p>\n<\/li>\n<li>\n<p>\u968f\u7740\u6d41\u7a0b\u63a8\u8fdb\u4e0d\u65ad\u66f4\u65b0<\/p>\n<\/li>\n<li>\n<p>\u8bb0\u5f55\u5404\u5173\u952e\u8282\u70b9\u7684\u65f6\u95f4\u6233<\/p>\n<\/li>\n<\/ul>\n<p>\u901a\u4fd7\u89e3\u91ca&#xff1a; \u5c31\u50cf\u5feb\u9012\u8ffd\u8e2a\u5355&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4e0b\u5355&#xff1a;\u8bb0\u5f55\u4e0b\u5355\u65f6\u95f4<\/p>\n<\/li>\n<li>\n<p>\u53d1\u8d27&#xff1a;\u66f4\u65b0\u53d1\u8d27\u65f6\u95f4<\/p>\n<\/li>\n<li>\n<p>\u8fd0\u8f93&#xff1a;\u66f4\u65b0\u5f53\u524d\u4f4d\u7f6e<\/p>\n<\/li>\n<li>\n<p>\u7b7e\u6536&#xff1a;\u66f4\u65b0\u7b7e\u6536\u65f6\u95f4<\/p>\n<\/li>\n<li>\n<p>\u540c\u4e00\u5f20\u5355\u5b50&#xff0c;\u4e0d\u540c\u65f6\u95f4\u66f4\u65b0\u4e0d\u540c\u5b57\u6bb5<\/p>\n<\/li>\n<\/ul>\n<p>\u521b\u5efa\u6b65\u9aa4&#xff1a;<\/p>\n<p>&#8212; \u6b65\u9aa41&#xff1a;\u521b\u5efa\u8ba2\u5355\u7d2f\u79ef\u5feb\u7167\u8868<br \/>\nCREATE TABLE dwd.fact_order_accumulating (<br \/>\n    order_key BIGINT COMMENT &#039;\u8ba2\u5355\u4ee3\u7406\u952e&#039;,<br \/>\n    order_id STRING COMMENT &#039;\u8ba2\u5355\u4e1a\u52a1ID&#039;,<br \/>\n    user_key INT COMMENT &#039;\u7528\u6237\u952e&#039;,<\/p>\n<p>    &#8212; \u5173\u952e\u65f6\u95f4\u70b9<br \/>\n    order_date_key INT COMMENT &#039;\u4e0b\u5355\u65e5\u671f&#039;,<br \/>\n    order_time STRING COMMENT &#039;\u4e0b\u5355\u65f6\u95f4&#039;,<\/p>\n<p>    pay_date_key INT COMMENT &#039;\u652f\u4ed8\u65e5\u671f&#039;,<br \/>\n    pay_time STRING COMMENT &#039;\u652f\u4ed8\u65f6\u95f4&#039;,<br \/>\n    pay_amount DECIMAL(10,2) COMMENT &#039;\u652f\u4ed8\u91d1\u989d&#039;,<\/p>\n<p>    ship_date_key INT COMMENT &#039;\u53d1\u8d27\u65e5\u671f&#039;,<br \/>\n    ship_time STRING COMMENT &#039;\u53d1\u8d27\u65f6\u95f4&#039;,<br \/>\n    logistics_company STRING COMMENT &#039;\u7269\u6d41\u516c\u53f8&#039;,<\/p>\n<p>    receive_date_key INT COMMENT &#039;\u7b7e\u6536\u65e5\u671f&#039;,<br \/>\n    receive_time STRING COMMENT &#039;\u7b7e\u6536\u65f6\u95f4&#039;,<br \/>\n    receiver_name STRING COMMENT &#039;\u6536\u8d27\u4eba&#039;,<\/p>\n<p>    &#8212; \u72b6\u6001\u8ddf\u8e2a<br \/>\n    current_status STRING COMMENT &#039;\u5f53\u524d\u72b6\u6001&#039;,<br \/>\n    status_update_time TIMESTAMP COMMENT &#039;\u72b6\u6001\u66f4\u65b0\u65f6\u95f4&#039;,<\/p>\n<p>    &#8212; \u5ea6\u91cf\u503c<br \/>\n    total_amount DECIMAL(10,2) COMMENT &#039;\u8ba2\u5355\u603b\u989d&#039;,<br \/>\n    discount_amount DECIMAL(10,2) COMMENT &#039;\u4f18\u60e0\u91d1\u989d&#039;,<br \/>\n    actual_amount DECIMAL(10,2) COMMENT &#039;\u5b9e\u4ed8\u91d1\u989d&#039;,<\/p>\n<p>    &#8212; \u5206\u533a&#xff08;\u6309\u4e0b\u5355\u65e5\u671f\u5206\u533a&#xff09;<br \/>\n    dt STRING COMMENT &#039;\u4e0b\u5355\u65e5\u671f\u5206\u533a&#039;<br \/>\n)<br \/>\nPARTITIONED BY (dt)<br \/>\nSTORED AS PARQUET;<\/p>\n<p>&#8212; \u6b65\u9aa42&#xff1a;ETL\u5904\u7406\u6d41\u7a0b&#xff08;\u589e\u91cf\u66f4\u65b0&#xff09;<br \/>\n1. \u521d\u59cb\u63d2\u5165&#xff1a;\u65b0\u8ba2\u5355\u521b\u5efa\u65f6\u63d2\u5165\u8bb0\u5f55&#xff0c;\u586b\u5145\u4e0b\u5355\u4fe1\u606f<br \/>\n2. \u652f\u4ed8\u66f4\u65b0&#xff1a;\u652f\u4ed8\u53d1\u751f\u65f6&#xff0c;\u66f4\u65b0pay_\u76f8\u5173\u5b57\u6bb5<br \/>\n3. \u53d1\u8d27\u66f4\u65b0&#xff1a;\u53d1\u8d27\u65f6\u66f4\u65b0ship_\u76f8\u5173\u5b57\u6bb5<br \/>\n4. \u7b7e\u6536\u66f4\u65b0&#xff1a;\u7b7e\u6536\u65f6\u66f4\u65b0receive_\u76f8\u5173\u5b57\u6bb5<br \/>\n5. \u72b6\u6001\u66f4\u65b0&#xff1a;\u6bcf\u6b21\u66f4\u65b0\u540c\u6b65\u66f4\u65b0current_status\u548c\u66f4\u65b0\u65f6\u95f4<br \/>\n6. \u5ef6\u8fdf\u6570\u636e&#xff1a;\u5904\u7406\u4e71\u5e8f\u5230\u8fbe\u7684\u6570\u636e&#xff0c;\u4fdd\u8bc1\u6700\u7ec8\u4e00\u81f4\u6027 <\/p>\n<h3 id=\"%E5%9B%9B%E3%80%81%E4%B8%89%E7%B1%BB%E4%BA%8B%E5%AE%9E%E8%A1%A8%E5%AF%B9%E6%AF%94%E6%80%BB%E7%BB%93\">\u56db\u3001\u4e09\u7c7b\u4e8b\u5b9e\u8868\u5bf9\u6bd4\u603b\u7ed3<\/h3>\n<table>\n<tr>\u7279\u5f81\u4e8b\u52a1\u4e8b\u5b9e\u8868\u5468\u671f\u5feb\u7167\u4e8b\u5b9e\u8868\u7d2f\u79ef\u5feb\u7167\u4e8b\u5b9e\u8868<\/tr>\n<tbody>\n<tr>\n<td>\u6570\u636e\u7279\u70b9<\/td>\n<td>\u8ffd\u52a0&#xff0c;\u4e0d\u66f4\u65b0<\/td>\n<td>\u5b9a\u671f\u63d2\u5165\u65b0\u8bb0\u5f55<\/td>\n<td>\u63d2\u5165\u540e\u591a\u6b21\u66f4\u65b0<\/td>\n<\/tr>\n<tr>\n<td>\u65f6\u95f4\u7ef4\u5ea6<\/td>\n<td>\u5355\u4e00\u4e8b\u4ef6\u65f6\u95f4<\/td>\n<td>\u5feb\u7167\u65f6\u95f4\u70b9<\/td>\n<td>\u591a\u4e2a\u5173\u952e\u65f6\u95f4\u70b9<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u91cf<\/td>\n<td>\u6700\u5927&#xff08;\u6bcf\u4e8b\u4ef6\u4e00\u884c&#xff09;<\/td>\n<td>\u4e2d\u7b49&#xff08;\u6bcf\u5468\u671f\u6bcf\u4e3b\u4f53\u4e00\u884c&#xff09;<\/td>\n<td>\u6700\u5c0f&#xff08;\u6bcf\u6d41\u7a0b\u4e00\u884c&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u7528\u573a\u666f<\/td>\n<td>\u4e8b\u4ef6\u5206\u6790<\/td>\n<td>\u72b6\u6001\u8d8b\u52bf\u5206\u6790<\/td>\n<td>\u6d41\u7a0b\u65f6\u957f\u5206\u6790<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u65b0\u9891\u7387<\/td>\n<td>\u4f4e\u9891\u8ffd\u52a0<\/td>\n<td>\u5b9a\u671f\u6279\u91cf\u63d2\u5165<\/td>\n<td>\u9ad8\u9891\u66f4\u65b0<\/td>\n<\/tr>\n<tr>\n<td>\u67e5\u8be2\u590d\u6742\u5ea6<\/td>\n<td>\u7b80\u5355<\/td>\n<td>\u4e2d\u7b49<\/td>\n<td>\u590d\u6742<\/td>\n<\/tr>\n<tr>\n<td>\u5b58\u50a8\u6210\u672c<\/td>\n<td>\u9ad8<\/td>\n<td>\u4e2d<\/td>\n<td>\u4f4e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"%E4%BA%94%E3%80%81%E5%AE%9E%E9%99%85%E4%B8%9A%E5%8A%A1%E6%A1%88%E4%BE%8B%EF%BC%9A%E7%94%B5%E5%95%86%E8%AE%A2%E5%8D%95%E5%85%A8%E6%B5%81%E7%A8%8B\">\u4e94\u3001\u5b9e\u9645\u4e1a\u52a1\u6848\u4f8b&#xff1a;\u7535\u5546\u8ba2\u5355\u5168\u6d41\u7a0b<\/h3>\n<p>&#8212; 1. \u4e8b\u52a1\u4e8b\u5b9e\u8868&#xff1a;\u8bb0\u5f55\u6bcf\u6b21\u652f\u4ed8\u4e8b\u4ef6<br \/>\nCREATE TABLE dwd.fact_payment_transaction (<br \/>\n    payment_id BIGINT,<br \/>\n    order_id BIGINT,<br \/>\n    user_key INT,<br \/>\n    payment_date_key INT,<br \/>\n    payment_time STRING,<br \/>\n    payment_method STRING,  &#8212; \u652f\u4ed8\u65b9\u5f0f<br \/>\n    payment_amount DECIMAL(10,2),<br \/>\n    payment_status STRING,<br \/>\n    dt STRING<br \/>\n);<\/p>\n<p>&#8212; 2. \u5468\u671f\u5feb\u7167\u8868&#xff1a;\u6bcf\u65e5\u7528\u6237\u4f59\u989d\u5feb\u7167<br \/>\nCREATE TABLE dwd.fact_user_balance_daily (<br \/>\n    user_key INT,<br \/>\n    date_key INT,<br \/>\n    opening_balance DECIMAL(15,2),  &#8212; \u671f\u521d\u4f59\u989d<br \/>\n    closing_balance DECIMAL(15,2),  &#8212; \u671f\u672b\u4f59\u989d<br \/>\n    total_income DECIMAL(15,2),     &#8212; \u5f53\u65e5\u6536\u5165<br \/>\n    total_expense DECIMAL(15,2),    &#8212; \u5f53\u65e5\u652f\u51fa<br \/>\n    dt STRING<br \/>\n);<\/p>\n<p>&#8212; 3. \u7d2f\u79ef\u5feb\u7167\u8868&#xff1a;\u8ba2\u5355\u5168\u751f\u547d\u5468\u671f<br \/>\nCREATE TABLE dwd.fact_order_lifecycle (<br \/>\n    order_key BIGINT,<br \/>\n    user_key INT,<br \/>\n    &#8212; \u65f6\u95f4\u8282\u70b9<br \/>\n    create_time TIMESTAMP,<br \/>\n    pay_time TIMESTAMP,<br \/>\n    ship_time TIMESTAMP,<br \/>\n    confirm_time TIMESTAMP,<br \/>\n    refund_time TIMESTAMP,<br \/>\n    &#8212; \u65f6\u957f\u8ba1\u7b97<br \/>\n    pay_duration_seconds INT,  &#8212; \u4e0b\u5355\u5230\u652f\u4ed8\u65f6\u957f<br \/>\n    ship_duration_seconds INT, &#8212; \u652f\u4ed8\u5230\u53d1\u8d27\u65f6\u957f<br \/>\n    delivery_duration_seconds INT, &#8212; \u53d1\u8d27\u5230\u786e\u8ba4\u65f6\u957f<br \/>\n    &#8212; \u5f53\u524d\u72b6\u6001<br \/>\n    current_status STRING,<br \/>\n    last_update_time TIMESTAMP,<br \/>\n    dt STRING<br \/>\n); <\/p>\n<h3 id=\"%E5%85%AD%E3%80%81%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5%E5%BB%BA%E8%AE%AE\">\u516d\u3001\u6700\u4f73\u5b9e\u8df5\u5efa\u8bae<\/h3>\n<h4 id=\"1.%C2%A0%E8%AE%BE%E8%AE%A1%E5%8E%9F%E5%88%99\">1.\u00a0\u8bbe\u8ba1\u539f\u5219<\/h4>\n<ul>\n<li>\n<p>\u4e00\u81f4\u6027&#xff1a;\u540c\u4e00\u4e1a\u52a1\u8fc7\u7a0b\u5728\u4e0d\u540c\u8868\u4e2d\u5b9a\u4e49\u4e00\u81f4<\/p>\n<\/li>\n<li>\n<p>\u5b8c\u6574\u6027&#xff1a;\u786e\u4fdd\u5173\u952e\u4e1a\u52a1\u8fc7\u7a0b\u90fd\u6709\u5bf9\u5e94\u4e8b\u5b9e\u8868<\/p>\n<\/li>\n<li>\n<p>\u53ef\u8ffd\u6eaf&#xff1a;\u4fdd\u7559\u6570\u636e\u8840\u7f18&#xff0c;\u4fbf\u4e8e\u95ee\u9898\u6392\u67e5<\/p>\n<\/li>\n<\/ul>\n<h4 id=\"2.%C2%A0%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96\">2.\u00a0\u6027\u80fd\u4f18\u5316<\/h4>\n<p>&#8212; \u5206\u533a\u7b56\u7565\u4f18\u5316<br \/>\nPARTITIONED BY (dt STRING, hour STRING)  &#8212; \u53cc\u7ea7\u5206\u533a<\/p>\n<p>&#8212; \u7d22\u5f15\u4f18\u5316<br \/>\nCREATE INDEX idx_user_date ON dwd.fact_order (user_key, date_key);<\/p>\n<p>&#8212; \u6570\u636e\u751f\u547d\u5468\u671f\u7ba1\u7406<br \/>\nALTER TABLE dwd.fact_order_detail<br \/>\nDROP PARTITION (dt &lt; &#039;2023-01-01&#039;);  &#8212; \u5b9a\u671f\u6e05\u7406\u5386\u53f2\u6570\u636e <\/p>\n<h4 id=\"3.%C2%A0%E6%95%B0%E6%8D%AE%E8%B4%A8%E9%87%8F%E4%BF%9D%E9%9A%9C\">3.\u00a0\u6570\u636e\u8d28\u91cf\u4fdd\u969c<\/h4>\n<p>&#8212; \u589e\u52a0\u6570\u636e\u8d28\u91cf\u68c0\u67e5\u5b57\u6bb5<br \/>\nALTER TABLE dwd.fact_order_detail ADD COLUMNS (<br \/>\n    data_source STRING COMMENT &#039;\u6570\u636e\u6765\u6e90&#039;,<br \/>\n    etl_batch_id STRING COMMENT &#039;ETL\u6279\u6b21ID&#039;,<br \/>\n    checksum_value STRING COMMENT &#039;\u6570\u636e\u6821\u9a8c\u503c&#039;,<br \/>\n    quality_score DECIMAL(3,2) COMMENT &#039;\u6570\u636e\u8d28\u91cf\u8bc4\u5206&#039;<br \/>\n); <\/p>\n<p>\u901a\u8fc7\u8fd9\u6837\u7684\u5206\u5c42\u8bbe\u8ba1&#xff0c;DWD\u5c42\u4e3a\u4e0a\u5c42\u5e94\u7528\u63d0\u4f9b\u4e86\u5e72\u51c0\u3001\u4e00\u81f4\u3001\u6613\u7528\u7684\u6570\u636e\u57fa\u7840&#xff0c;\u662f\u6570\u636e\u4ed3\u5e93\u5efa\u8bbe\u7684\u6838\u5fc3\u73af\u8282\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 \u4e00\u3001DWD\u5c42\u4ecb\u7ecd<br \/>\n\u4e13\u4e1a\u89e3\u91ca&#xff1a;<br \/>\n\u901a\u4fd7\u89e3\u91ca&#xff1a;<br \/>\n\u4e3e\u4f8b&#xff1a;\u7535\u5546\u8ba2\u5355\u5904\u7406<br \/>\n\u4e8c\u3001DWD\u5c42\u4e8b\u52a1\u8868\u8be6\u89e3<br \/>\n1. \u7ef4\u5ea6\u4e0e\u5ea6\u91cf\u503c<br \/>\n2. \u5b58\u50a8\u65b9\u5f0f<br \/>\n3. \u538b\u7f29\u65b9\u5f0f<br \/>\n4. \u6570\u636e\u57df\u5212\u5206<br \/>\n\u4e09\u3001\u4e8b\u52a1\u8868\u5206\u7c7b\u8be6\u89e3<br \/>\n1. \u4e8b\u52a1\u4e8b\u5b9e\u8868&#xff08;Transaction Fact Table&#xff09;<br \/>\n2. \u5468\u671f\u5feb\u7167\u4e8b\u5b9e\u8868&#xff08;Periodic Snapshot Fact Table&#xff09;<br \/>\n3. \u7d2f\u79ef\u5feb\u7167\u4e8b\u5b9e\u8868&amp;#xf<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[323,371,2330,305],"topic":[],"class_list":["post-69641","post","type-post","status-publish","format-standard","hentry","category-server","tag-323","tag-371","tag-2330","tag-305"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>27-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u6570\u636e\u4ed3\u5e93DWD\u5c42\u4ecb\u7ecd\u53ca\u5176\u4e8b\u52a1\u8868\uff08\u884c\u4e3a\uff09\u76f8\u5173\u6982\u5ff5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/69641.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"27-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u6570\u636e\u4ed3\u5e93DWD\u5c42\u4ecb\u7ecd\u53ca\u5176\u4e8b\u52a1\u8868\uff08\u884c\u4e3a\uff09\u76f8\u5173\u6982\u5ff5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55 \u4e00\u3001DWD\u5c42\u4ecb\u7ecd \u4e13\u4e1a\u89e3\u91ca&#xff1a; \u901a\u4fd7\u89e3\u91ca&#xff1a; \u4e3e\u4f8b&#xff1a;\u7535\u5546\u8ba2\u5355\u5904\u7406 \u4e8c\u3001DWD\u5c42\u4e8b\u52a1\u8868\u8be6\u89e3 1. \u7ef4\u5ea6\u4e0e\u5ea6\u91cf\u503c 2. \u5b58\u50a8\u65b9\u5f0f 3. \u538b\u7f29\u65b9\u5f0f 4. \u6570\u636e\u57df\u5212\u5206 \u4e09\u3001\u4e8b\u52a1\u8868\u5206\u7c7b\u8be6\u89e3 1. \u4e8b\u52a1\u4e8b\u5b9e\u8868&#xff08;Transaction Fact Table&#xff09; 2. \u5468\u671f\u5feb\u7167\u4e8b\u5b9e\u8868&#xff08;Periodic Snapshot Fact Table&#xff09; 3. \u7d2f\u79ef\u5feb\u7167\u4e8b\u5b9e\u8868&amp;#xf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/69641.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-31T15:32:45+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/69641.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/69641.html\",\"name\":\"27-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u6570\u636e\u4ed3\u5e93DWD\u5c42\u4ecb\u7ecd\u53ca\u5176\u4e8b\u52a1\u8868\uff08\u884c\u4e3a\uff09\u76f8\u5173\u6982\u5ff5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-31T15:32:45+00:00\",\"dateModified\":\"2026-01-31T15:32:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/69641.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/69641.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/69641.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"27-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u6570\u636e\u4ed3\u5e93DWD\u5c42\u4ecb\u7ecd\u53ca\u5176\u4e8b\u52a1\u8868\uff08\u884c\u4e3a\uff09\u76f8\u5173\u6982\u5ff5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"27-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u6570\u636e\u4ed3\u5e93DWD\u5c42\u4ecb\u7ecd\u53ca\u5176\u4e8b\u52a1\u8868\uff08\u884c\u4e3a\uff09\u76f8\u5173\u6982\u5ff5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/69641.html","og_locale":"zh_CN","og_type":"article","og_title":"27-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u6570\u636e\u4ed3\u5e93DWD\u5c42\u4ecb\u7ecd\u53ca\u5176\u4e8b\u52a1\u8868\uff08\u884c\u4e3a\uff09\u76f8\u5173\u6982\u5ff5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55 \u4e00\u3001DWD\u5c42\u4ecb\u7ecd \u4e13\u4e1a\u89e3\u91ca&#xff1a; \u901a\u4fd7\u89e3\u91ca&#xff1a; \u4e3e\u4f8b&#xff1a;\u7535\u5546\u8ba2\u5355\u5904\u7406 \u4e8c\u3001DWD\u5c42\u4e8b\u52a1\u8868\u8be6\u89e3 1. \u7ef4\u5ea6\u4e0e\u5ea6\u91cf\u503c 2. \u5b58\u50a8\u65b9\u5f0f 3. \u538b\u7f29\u65b9\u5f0f 4. \u6570\u636e\u57df\u5212\u5206 \u4e09\u3001\u4e8b\u52a1\u8868\u5206\u7c7b\u8be6\u89e3 1. \u4e8b\u52a1\u4e8b\u5b9e\u8868&#xff08;Transaction Fact Table&#xff09; 2. \u5468\u671f\u5feb\u7167\u4e8b\u5b9e\u8868&#xff08;Periodic Snapshot Fact Table&#xff09; 3. \u7d2f\u79ef\u5feb\u7167\u4e8b\u5b9e\u8868&amp;#xf","og_url":"https:\/\/www.wsisp.com\/helps\/69641.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-31T15:32:45+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/69641.html","url":"https:\/\/www.wsisp.com\/helps\/69641.html","name":"27-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u6570\u636e\u4ed3\u5e93DWD\u5c42\u4ecb\u7ecd\u53ca\u5176\u4e8b\u52a1\u8868\uff08\u884c\u4e3a\uff09\u76f8\u5173\u6982\u5ff5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-31T15:32:45+00:00","dateModified":"2026-01-31T15:32:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/69641.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/69641.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/69641.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"27-\u5b66\u4e60\u7b14\u8bb0\u5c1a\u7845\u8c37\u6570\u4ed3\u642d\u5efa-\u6570\u636e\u4ed3\u5e93DWD\u5c42\u4ecb\u7ecd\u53ca\u5176\u4e8b\u52a1\u8868\uff08\u884c\u4e3a\uff09\u76f8\u5173\u6982\u5ff5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/69641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=69641"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/69641\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=69641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=69641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=69641"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=69641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}