From 28946713237d96cd59c5c99f554c1712f803c3ea Mon Sep 17 00:00:00 2001 From: admin <2775444633@qq.com> Date: Tue, 24 Nov 2026 17:13:18 +0000 Subject: [PATCH] =?UTF-8?q?chore(sync):=20=E6=9B=B4=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E4=BB=93=20DataHub=20=E5=90=8C=E6=AD=A5=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=BF=AB=E7=85=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 05_sync/warehouse_datahub_state.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/05_sync/warehouse_datahub_state.json b/05_sync/warehouse_datahub_state.json index c56f272..0d3a191 100644 --- a/05_sync/warehouse_datahub_state.json +++ b/05_sync/warehouse_datahub_state.json @@ -37,9 +37,9 @@ "wh_rule_idempotent_overwrite": "urn:li:glossaryTerm:wh_rule_idempotent_overwrite" }, "last_created": { - "domains": 5, - "tags": 10, - "terms": 4 + "domains": 0, + "tags": 0, + "terms": 0 }, "last_ok_tables": [ "ads.ads_purchase_kpi_1d", @@ -66,7 +66,7 @@ "ods.ods_stock_flow", "ods.ods_supplier" ], - "spec_json": "{\"domains\": [{\"key\": \"master\", \"name\": \"\u6570\u4ed3\u4e3b\u6570\u636e\u57df\", \"description\": \"\u4f9b\u5e94\u5546\u3001\u5ba2\u6237\u3001SKU \u4e0e\u522b\u540d\u6620\u5c04\u7b49\u4e3b\u6570\u636e\u7684\u8d34\u6e90\u4e0e\u6e05\u6d17\u5feb\u7167\uff0c\u4f9b\u5168\u94fe\u8def\u5f15\u7528\u3002\"}, {\"key\": \"purchase\", \"name\": \"\u6570\u4ed3\u91c7\u8d2d\u57df\", \"description\": \"\u91c7\u8d2d\u5355\u4ece\u8349\u7a3f\u3001\u786e\u8ba4\u5230\u5165\u5e93\u7684\u660e\u7ec6\u5bbd\u8868\u4e0e\u4f9b\u5e94\u5546\u65e5\u6c47\u603b\uff0c\u627f\u8f7d\u91c7\u8d2d\u5165\u5e93\u53e3\u5f84\u3002\"}, {\"key\": \"sales\", \"name\": \"\u6570\u4ed3\u9500\u552e\u57df\", \"description\": \"\u9500\u552e\u5355\u4ece\u8349\u7a3f\u3001\u786e\u8ba4\u5230\u51fa\u5e93\u7684\u660e\u7ec6\u5bbd\u8868\u4e0e\u5ba2\u6237\u65e5\u6c47\u603b\uff0c\u627f\u8f7d\u9500\u552e\u51fa\u5e93\u53e3\u5f84\u3002\"}, {\"key\": \"inventory\", \"name\": \"\u6570\u4ed3\u5e93\u5b58\u57df\", \"description\": \"\u5e93\u5b58\u4f59\u989d\u3001\u5e93\u5b58\u6d41\u6c34\u4e0e\u4f4e\u5e93\u5b58\u9884\u8b66\uff0c\u4fdd\u8bc1\u73b0\u5b58\u91cf=\u03a3\u6d41\u6c34\u53d8\u52a8\u3002\"}, {\"key\": \"kpi\", \"name\": \"\u6570\u4ed3\u6307\u6807\u57df\", \"description\": \"ADS \u5c42\u65e5/\u6708 KPI\u3001TOP \u6392\u884c\u7b49\u9762\u5411\u5e94\u7528\u4e0e\u770b\u677f\u7684\u6307\u6807\u7ed3\u679c\u8868\u3002\"}], \"tags\": [{\"key\": \"wh\", \"name\": \"wh\", \"description\": \"\u6570\u4ed3\u8d44\u4ea7\u901a\u7528\u6807\u7b7e\uff0c\u6240\u6709\u5165\u4ed3\u8868\u7edf\u4e00\u643a\u5e26\u3002\"}, {\"key\": \"wh_ods\", \"name\": \"wh_ods\", \"description\": \"ODS \u8d34\u6e90\u5c42\uff0c\u6309\u5929\u62bd\u53d6\u7684\u5168\u91cf\u5feb\u7167\u6216\u5f53\u65e5\u589e\u91cf\u3002\"}, {\"key\": \"wh_dwd\", \"name\": \"wh_dwd\", \"description\": \"DWD \u660e\u7ec6\u5c42\uff0c\u6e05\u6d17\u540e\u5168\u5386\u53f2\u53bb\u91cd\u5feb\u7167/\u660e\u7ec6\u5bbd\u8868\u3002\"}, {\"key\": \"wh_dws\", \"name\": \"wh_dws\", \"description\": \"DWS \u6c47\u603b\u5c42\uff0c\u6309\u65e5\u7c92\u5ea6\u7684\u8f7b\u5ea6\u805a\u5408\u7ed3\u679c\u3002\"}, {\"key\": \"wh_ads\", \"name\": \"wh_ads\", \"description\": \"ADS \u5e94\u7528\u5c42\uff0c\u76f4\u63a5\u670d\u52a1\u770b\u677f\u4e0e\u95ee\u6570\u7684\u6307\u6807\u7ed3\u679c\u3002\"}, {\"key\": \"wh_pii_phone\", \"name\": \"wh_pii_phone\", \"description\": \"\u4e2a\u4eba\u4fe1\u606f\uff08\u7535\u8bdd\uff09\uff1a\u5bf9\u5916\u8f93\u51fa\u987b\u63a9\u7801\uff0c\u4fdd\u7559\u524d 3 \u540e 4\uff0c\u4e2d\u95f4 ****\uff0c\u4e0d\u8db3 7 \u4f4d\u5168\u63a9\u7801\u3002\"}, {\"key\": \"wh_pii_id_card\", \"name\": \"wh_pii_id_card\", \"description\": \"\u4e2a\u4eba\u4fe1\u606f\uff08\u8eab\u4efd\u8bc1\u53f7\uff09\uff0c\u7981\u6b62\u660e\u6587\u5916\u53d1\u3002\"}, {\"key\": \"wh_pii_bank\", \"name\": \"wh_pii_bank\", \"description\": \"\u4e2a\u4eba\u4fe1\u606f\uff08\u94f6\u884c\u8d26\u53f7\uff09\uff0c\u7981\u6b62\u660e\u6587\u5916\u53d1\u3002\"}, {\"key\": \"wh_biz_sensitive\", \"name\": \"wh_biz_sensitive\", \"description\": \"\u4e1a\u52a1\u654f\u611f\u4fe1\u606f\uff0c\u5982\u8054\u7cfb\u4eba\u3001\u5730\u5740\u7b49\u4f9b\u5e94\u5546/\u5ba2\u6237\u4fe1\u606f\uff0c\u4ec5\u9650\u5185\u90e8\u6f14\u793a\u4f7f\u7528\u3002\"}, {\"key\": \"wh_demo\", \"name\": \"wh_demo\", \"description\": \"\u6f14\u793a\u73af\u5883\u6570\u636e\uff0c\u6765\u6e90\u4e3a\u865a\u6784\u8d38\u6613\u516c\u53f8\u4e1a\u52a1\u5e93\u3002\"}], \"terms\": [{\"key\": \"wh_metric_received_amount\", \"name\": \"\u91c7\u8d2d\u5165\u5e93\u91d1\u989d\", \"description\": \"\u5df2\u5165\u5e93\uff08RECEIVED\uff09\u91c7\u8d2d\u5355\u7684\u603b\u91d1\u989d\u4e4b\u548c\uff1aSUM(po_order.total_amount) WHERE status='RECEIVED'\uff1b\u8349\u7a3f/\u5df2\u786e\u8ba4/\u4f5c\u5e9f\u4e0d\u8ba1\u5165\uff0c\u4f5c\u5e9f\u5355\u636e\u6c38\u8fdc\u4e0d\u8ba1\u5165\u4efb\u4f55\u91d1\u989d\u6307\u6807\uff1b\u672c\u6708\u53e3\u5f84\u518d\u52a0 order_date \u5728\u5f53\u6708\uff08\u81ea\u7136\u6708\uff0cAsia/Shanghai\uff09\uff1b\u9ed8\u8ba4\u6307\u5df2\u6267\u884c\u53e3\u5f84\u800c\u975e\u5f00\u5355\u53e3\u5f84\u3002\"}, {\"key\": \"wh_metric_shipped_amount\", \"name\": \"\u9500\u552e\u51fa\u5e93\u91d1\u989d\", \"description\": \"\u5df2\u51fa\u5e93\uff08SHIPPED\uff09\u9500\u552e\u5355\u7684\u603b\u91d1\u989d\u4e4b\u548c\uff1aSUM(so_order.total_amount) WHERE status='SHIPPED'\uff1b\u672c\u6708\u53e3\u5f84\u518d\u52a0 order_date \u5728\u5f53\u6708\uff1b\u9ed8\u8ba4\u6307\u5df2\u6267\u884c\uff08\u51fa\u5e93\uff09\u53e3\u5f84\uff0c\u4e0d\u662f\u5f00\u5355\u53e3\u5f84\uff0c\u4f5c\u5e9f\u5355\u636e\u4e0d\u8ba1\u5165\u3002\"}, {\"key\": \"wh_metric_order_cnt\", \"name\": \"\u5355\u636e\u6570\", \"description\": \"\u6309 order_date=dt \u7684\u5355\u636e\u53bb\u91cd\u8ba1\u6570\uff08\u4e0b\u5355\u6570\uff09\uff1b\u5165\u5e93\u5355\u6570\u6309 received_at \u5f53\u65e5=dt \u53bb\u91cd\u8ba1\u6570\uff0c\u51fa\u5e93\u5355\u6570\u6309 shipped_at \u5f53\u65e5=dt \u53bb\u91cd\u8ba1\u6570\u3002\"}, {\"key\": \"wh_metric_low_stock\", \"name\": \"\u4f4e\u5e93\u5b58\u9884\u8b66\", \"description\": \"\u73b0\u5b58\u91cf\u4e25\u683c\u5c0f\u4e8e\u8be5 SKU \u5b89\u5168\u5e93\u5b58\u5373\u89e6\u53d1\uff1aqty_on_hand < md_sku.safety_stock\uff08\u4e25\u683c\u5c0f\u4e8e\uff09\uff0c\u6982\u89c8\u9875\u4e0e\u5e93\u5b58\u9875\u53ef\u89c1\u3002\"}, {\"key\": \"wh_status_purchase_order\", \"name\": \"\u91c7\u8d2d\u5355\u72b6\u6001\", \"description\": \"\u679a\u4e3e\uff1aDRAFT \u8349\u7a3f\uff08\u53ef\u7f16\u8f91/\u5220\u9664\uff0c\u53ef\u8fc1 CONFIRMED\u3001CANCELLED\uff09\u3001CONFIRMED \u5df2\u786e\u8ba4\uff08\u5f85\u5165\u5e93\uff0c\u9501\u5b9a\u5185\u5bb9\uff0c\u53ef\u8fc1 RECEIVED\u3001CANCELLED\uff09\u3001RECEIVED \u5df2\u5165\u5e93\uff08\u5e93\u5b58\u5df2\u589e\u52a0\uff0c\u7ec8\u6001\uff09\u3001CANCELLED \u5df2\u4f5c\u5e9f\uff08\u7559\u75d5\u7ec8\u6001\uff09\u3002\"}, {\"key\": \"wh_status_sales_order\", \"name\": \"\u9500\u552e\u5355\u72b6\u6001\", \"description\": \"\u679a\u4e3e\uff1aDRAFT \u8349\u7a3f\uff08\u53ef\u7f16\u8f91/\u5220\u9664\uff0c\u53ef\u8fc1 CONFIRMED\u3001CANCELLED\uff09\u3001CONFIRMED \u5df2\u786e\u8ba4\uff08\u5f85\u51fa\u5e93\uff0c\u53ef\u8fc1 SHIPPED\u3001CANCELLED\uff09\u3001SHIPPED \u5df2\u51fa\u5e93\uff08\u5e93\u5b58\u5df2\u6263\u51cf\uff0c\u7ec8\u6001\uff09\u3001CANCELLED \u5df2\u4f5c\u5e9f\uff08\u7559\u75d5\u7ec8\u6001\uff09\u3002\"}, {\"key\": \"wh_concept_snapshot_partition\", \"name\": \"\u5168\u5386\u53f2\u5feb\u7167\u5206\u533a\", \"description\": \"\u6bcf\u4e2a dt \u5206\u533a = \u622a\u81f3\u5f53\u65e5\u6309 id \u53bb\u91cd\u540e\u7684\u5168\u91cf\u6e05\u6d17\u7ed3\u679c\uff1aROW_NUMBER() OVER (PARTITION BY id ORDER BY updated_at DESC, dt DESC) \u53d6\u6700\u65b0\uff1b\u660e\u7ec6\u884c\u65e0\u65f6\u95f4\u6233\u5217\uff0c\u6309 dt DESC \u53d6\u6700\u65b0\u5feb\u7167\u3002\"}, {\"key\": \"wh_rule_idempotent_overwrite\", \"name\": \"\u5206\u533a\u5e42\u7b49\u91cd\u5237\", \"description\": \"ETL \u5168\u90e8 INSERT OVERWRITE ... PARTITION(dt='${dt}') \u505a\u5206\u533a\u7ea7\u8986\u76d6\uff0c\u5efa\u8868 IF NOT EXISTS\uff0cODS \u5206\u533a\u53d1\u73b0\u7528 MSCK REPAIR TABLE\uff1b\u62bd\u53d6\u540c\u4e00 --dt \u91cd\u8dd1\u5148\u5220 MinIO \u5206\u533a\u76ee\u5f55\u518d\u5199\uff1b\u8c03\u5ea6\u5168\u5c40\u53c2\u6570 dt=$[yyyy-MM-dd-1]\uff0c\u8865\u6570\u636e/\u91cd\u8dd1\u540c\u4e00\u5929\u4e0d\u4f1a\u91cd\u590d\u7d2f\u52a0\u3002\"}], \"datasets\": [{\"table\": \"ads.ads_purchase_kpi_1d\", \"description\": \"\u91c7\u8d2d\u65e5 KPI \u8868\uff0c\u7c92\u5ea6 dt\uff08stat_date\uff09\u3002\u6309\u65e5\u6c47\u603b\u5df2\u5165\u5e93\uff08RECEIVED\uff09\u91c7\u8d2d\u5355\u7684\u5165\u5e93\u91d1\u989d\u4e0e\u5165\u5e93\u5355\u6570\uff0c\u5e76\u7ed9\u51fa\u672c\u6708\u7d2f\u8ba1\u5165\u5e93\u91d1\u989d\u548c\u5f53\u65e5\u6d3b\u8dc3\u4f9b\u5e94\u5546\u6570\uff1b\u53e3\u5f84\u53ea\u7edf\u8ba1\u5df2\u5165\u5e93\u5355\u636e\uff0c\u8349\u7a3f/\u5df2\u786e\u8ba4/\u4f5c\u5e9f\u4e0d\u8ba1\u5165\uff0c\u4f5c\u5e9f\u5355\u636e\u6c38\u8fdc\u4e0d\u8ba1\u5165\u4efb\u4f55\u91d1\u989d\u6307\u6807\u3002\", \"domain_key\": \"kpi\", \"tags\": [\"wh\", \"wh_ads\", \"wh_demo\"], \"term_fields\": [{\"field\": \"received_amount\", \"term_key\": \"wh_metric_received_amount\"}, {\"field\": \"order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ads.ads_sales_kpi_1d\", \"description\": \"\u9500\u552e\u65e5 KPI \u8868\uff0c\u7c92\u5ea6 dt\uff08stat_date\uff09\u3002\u6309\u65e5\u6c47\u603b\u5df2\u51fa\u5e93\uff08SHIPPED\uff09\u9500\u552e\u5355\u7684\u51fa\u5e93\u91d1\u989d\u4e0e\u51fa\u5e93\u5355\u6570\uff0c\u5e76\u7ed9\u51fa\u672c\u6708\u7d2f\u8ba1\u51fa\u5e93\u91d1\u989d\u548c\u5f53\u65e5\u6d3b\u8dc3\u5ba2\u6237\u6570\uff1b\u53ea\u7edf\u8ba1\u5df2\u51fa\u5e93\u5355\u636e\uff0c\u4f5c\u5e9f\u5355\u636e\u4e0d\u8ba1\u5165\u4efb\u4f55\u91d1\u989d\u6307\u6807\u3002\", \"domain_key\": \"kpi\", \"tags\": [\"wh\", \"wh_ads\", \"wh_demo\"], \"term_fields\": [{\"field\": \"shipped_amount\", \"term_key\": \"wh_metric_shipped_amount\"}, {\"field\": \"order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ads.ads_sku_top_sale_1d\", \"description\": \"\u8fd1 30 \u5929\u51fa\u5e93\u91d1\u989d TOP10 SKU \u6392\u884c\u8868\uff0c\u7c92\u5ea6 dt\u00d7rank_no\u3002\u57fa\u4e8e\u5df2\u51fa\u5e93\uff08SHIPPED\uff09\u9500\u552e\u660e\u7ec6\u7edf\u8ba1\u8fd1 30 \u5929\u51fa\u5e93\u91d1\u989d\u4e0e\u51fa\u5e93\u6570\u91cf\u5e76\u6392\u540d\uff0c\u4f9b\u9500\u552e\u770b\u677f\u5c55\u793a\u3002\", \"domain_key\": \"kpi\", \"tags\": [\"wh\", \"wh_ads\", \"wh_demo\"], \"term_fields\": [{\"field\": \"shipped_amount_30d\", \"term_key\": \"wh_metric_shipped_amount\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ads.ads_stock_alert_1d\", \"description\": \"\u4f4e\u5e93\u5b58\u9884\u8b66\u6e05\u5355\uff0c\u7c92\u5ea6 dt\u00d7SKU\u3002\u73b0\u5b58\u91cf\u4e25\u683c\u5c0f\u4e8e\u5b89\u5168\u5e93\u5b58\uff08qty_on_hand < safety_stock\uff09\u5373\u5165\u5217\uff0cgap_qty=\u5b89\u5168\u5e93\u5b58-\u73b0\u5b58\u91cf\uff0c\u5e76\u9644\u5f53\u65e5\u51fa\u5e93\u91cf\uff0c\u4f9b\u6982\u89c8\u9875\u4e0e\u5e93\u5b58\u9875\u9884\u8b66\u4f7f\u7528\u3002\", \"domain_key\": \"inventory\", \"tags\": [\"wh\", \"wh_ads\", \"wh_demo\"], \"term_fields\": [{\"field\": \"gap_qty\", \"term_key\": \"wh_metric_low_stock\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_customer_df\", \"description\": \"\u5ba2\u6237\u4e3b\u6570\u636e\u6e05\u6d17\u5feb\u7167\uff0c\u7c92\u5ea6 dt\u00d7\u5ba2\u6237\uff0c\u6309 id \u53bb\u91cd\u53d6\u6700\u65b0\uff08ORDER BY updated_at DESC, dt DESC\uff09\u7684\u5168\u5386\u53f2\u5feb\u7167\u3002\u542b contact_phone\u3001contact_person\u3001address \u7b49\u654f\u611f\u4fe1\u606f\uff0c\u5bf9\u5916\u8f93\u51fa\u987b\u6309\u63a9\u7801\u89c4\u5219\uff08\u4fdd\u7559\u524d 3 \u540e 4\uff0c\u4e2d\u95f4 ****\uff09\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_pii_phone\", \"wh_biz_sensitive\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_purchase_order_df\", \"description\": \"\u91c7\u8d2d\u5355\u5bbd\u8868\uff0c\u7c92\u5ea6 dt\u00d7\u5355\u53f7\u00d7\u660e\u7ec6\u884c\u00d7SKU\uff1a\u5355\u5934\u4e0e\u660e\u7ec6\u884c\u5173\u8054\uff0c\u5e76\u8865\u5145\u4f9b\u5e94\u5546\u4e0e SKU \u5c5e\u6027\uff0c\u5168\u5386\u53f2\u53bb\u91cd\u5feb\u7167\u3002status \u4e3a\u91c7\u8d2d\u5355\u72b6\u6001\u673a\uff0c\u53ea\u6709 RECEIVED \u624d\u8ba1\u5165\u91c7\u8d2d\u5165\u5e93\u91d1\u989d\u53e3\u5f84\u3002\", \"domain_key\": \"purchase\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_demo\"], \"term_fields\": [{\"field\": \"status\", \"term_key\": \"wh_status_purchase_order\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_sales_order_df\", \"description\": \"\u9500\u552e\u5355\u5bbd\u8868\uff0c\u7c92\u5ea6 dt\u00d7\u5355\u53f7\u00d7\u660e\u7ec6\u884c\u00d7\u5ba2\u6237\u00d7SKU\uff1a\u5355\u5934\u4e0e\u660e\u7ec6\u884c\u5173\u8054\u5e76\u8865\u5145\u5ba2\u6237\u4e0e SKU \u5c5e\u6027\uff0c\u5168\u5386\u53f2\u53bb\u91cd\u5feb\u7167\u3002status \u4e3a\u9500\u552e\u5355\u72b6\u6001\u673a\uff0c\u53ea\u6709 SHIPPED \u624d\u8ba1\u5165\u9500\u552e\u51fa\u5e93\u91d1\u989d\u53e3\u5f84\u3002\", \"domain_key\": \"sales\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_demo\"], \"term_fields\": [{\"field\": \"status\", \"term_key\": \"wh_status_sales_order\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_sku_df\", \"description\": \"SKU \u4e3b\u6570\u636e\u6e05\u6d17\u5feb\u7167\uff0c\u7c92\u5ea6 dt\u00d7SKU\uff0c\u6309 id \u53bb\u91cd\u53d6\u6700\u65b0\u3002\u542b\u7c7b\u76ee\u3001\u89c4\u683c\u3001\u91c7\u8d2d\u4ef7/\u9500\u552e\u4ef7\u4e0e\u5b89\u5168\u5e93\u5b58\uff0c\u5176\u4e2d safety_stock \u662f\u4f4e\u5e93\u5b58\u9884\u8b66\u7684\u5224\u5b9a\u57fa\u51c6\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_stock_flow_df\", \"description\": \"\u5e93\u5b58\u6d41\u6c34\u660e\u7ec6\u5bbd\u8868\uff0c\u7c92\u5ea6 dt\u00d7\u6d41\u6c34 ID\uff08\u9644 SKU \u5c5e\u6027\uff09\uff0c\u5168\u5386\u53f2\u53bb\u91cd\u5feb\u7167\u3002biz_type \u53d6 INIT/PO_RECEIVE/SO_SHIP/ADJUST\uff0cqty_delta \u6b63\u5165\u8d1f\u51fa\u3001qty_after \u4e3a\u53d8\u52a8\u540e\u7ed3\u5b58\uff1b\u6d41\u6c34\u53ea\u589e\u4e0d\u6539\u4e0d\u5220\uff0c\u662f DQ05 \u6d41\u6c34\u7d2f\u8ba1=\u5e93\u5b58\u4f59\u989d\u7a3d\u6838\u7684\u5e95\u8868\u3002\", \"domain_key\": \"inventory\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_supplier_df\", \"description\": \"\u4f9b\u5e94\u5546\u4e3b\u6570\u636e\u6e05\u6d17\u5feb\u7167\uff0c\u7c92\u5ea6 dt\u00d7\u4f9b\u5e94\u5546\uff0c\u6309 id \u53bb\u91cd\u53d6\u6700\u65b0\u7684\u5168\u5386\u53f2\u5feb\u7167\u3002\u542b contact_phone\u3001contact_person\u3001address \u7b49\u654f\u611f\u4fe1\u606f\uff0c\u7535\u8bdd\u5bf9\u5916\u8f93\u51fa\u987b\u63a9\u7801\uff08\u4fdd\u7559\u524d 3 \u540e 4\uff0c\u4e0d\u8db3 7 \u4f4d\u5168\u63a9\u7801\uff09\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_pii_phone\", \"wh_biz_sensitive\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dws.dws_purchase_supplier_1d\", \"description\": \"\u4f9b\u5e94\u5546\u00d7\u65e5\u91c7\u8d2d\u6c47\u603b\uff0c\u7c92\u5ea6 dt\u00d7supplier_code\u3002order_cnt \u4e3a order_date=dt \u7684\u4e0b\u5355\u6570\uff0creceived_order_cnt \u4e3a received_at \u5f53\u65e5=dt \u7684\u5165\u5e93\u5355\u6570\uff0creceived_amount \u4e0e received_qty \u53ea\u7edf\u8ba1 status='RECEIVED' \u7684\u5165\u5e93\u5355\u636e\uff08\u5df2\u6267\u884c\u53e3\u5f84\uff09\u3002\", \"domain_key\": \"purchase\", \"tags\": [\"wh\", \"wh_dws\", \"wh_demo\"], \"term_fields\": [{\"field\": \"received_amount\", \"term_key\": \"wh_metric_received_amount\"}, {\"field\": \"order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"received_order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dws.dws_sales_customer_1d\", \"description\": \"\u5ba2\u6237\u00d7\u65e5\u9500\u552e\u6c47\u603b\uff0c\u7c92\u5ea6 dt\u00d7customer_code\u3002order_cnt \u4e3a\u4e0b\u5355\u6570\uff0cshipped_order_cnt \u4e3a\u51fa\u5e93\u5355\u6570\uff0cshipped_amount \u4e0e shipped_qty \u53ea\u7edf\u8ba1 status='SHIPPED' \u7684\u51fa\u5e93\u5355\u636e\uff08\u5df2\u6267\u884c\u53e3\u5f84\uff09\uff0c\u4f5c\u5e9f\u5355\u636e\u4e0d\u8ba1\u5165\u3002\", \"domain_key\": \"sales\", \"tags\": [\"wh\", \"wh_dws\", \"wh_demo\"], \"term_fields\": [{\"field\": \"shipped_amount\", \"term_key\": \"wh_metric_shipped_amount\"}, {\"field\": \"order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"shipped_order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dws.dws_sku_stock_1d\", \"description\": \"SKU\u00d7\u65e5\u5e93\u5b58\u6c47\u603b\uff0c\u7c92\u5ea6 dt\u00d7sku_code\u3002qty_on_hand \u4e3a\u5f53\u65e5\u7ed3\u5b58\uff0clow_stock \u4e3a\u73b0\u5b58\u91cf\u4e25\u683c\u5c0f\u4e8e\u5b89\u5168\u5e93\u5b58\uff08qty_on_hand < safety_stock\uff09\u7684\u5e03\u5c14\u6807\u5fd7\uff0c\u5e76\u542b\u5f53\u65e5 in_qty_1d/out_qty_1d \u51fa\u5165\u5e93\u91cf\uff1b\u662f\u4f4e\u5e93\u5b58\u9884\u8b66\u7684\u4e0a\u6e38\u3002\", \"domain_key\": \"inventory\", \"tags\": [\"wh\", \"wh_dws\", \"wh_demo\"], \"term_fields\": [{\"field\": \"low_stock\", \"term_key\": \"wh_metric_low_stock\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_alias_mapping\", \"description\": \"\u522b\u540d\u6620\u5c04 ODS \u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff0c\u767b\u8bb0\u5916\u90e8\u7cfb\u7edf\u4e0e\u4e3b\u6863\u7684\u540d\u79f0/\u7f16\u7801\u5dee\u5f02\uff08entity_type\uff1aSUPPLIER/CUSTOMER/SKU\uff09\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_customer\", \"description\": \"\u5ba2\u6237\u4e3b\u6570\u636e ODS \u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff0c\u542b contact_phone \u7b49\u8054\u7cfb\u65b9\u5f0f\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_ods\", \"wh_pii_phone\", \"wh_biz_sensitive\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_po_order\", \"description\": \"\u91c7\u8d2d\u5355\u5934 ODS\uff0c\u6309 updated_at \u5f53\u65e5\u589e\u91cf\u62bd\u53d6\u3002\", \"domain_key\": \"purchase\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"status\", \"term_key\": \"wh_status_purchase_order\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_po_order_item\", \"description\": \"\u91c7\u8d2d\u5355\u660e\u7ec6\u884c ODS \u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff08\u6e90\u8868\u65e0\u65f6\u95f4\u6233\u5217\uff09\u3002\", \"domain_key\": \"purchase\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_sku\", \"description\": \"SKU \u4e3b\u6570\u636e ODS \u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff0c\u542b\u5b89\u5168\u5e93\u5b58\u3001\u91c7\u8d2d\u4ef7/\u9500\u552e\u4ef7\u7b49\u5c5e\u6027\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_so_order\", \"description\": \"\u9500\u552e\u5355\u5934 ODS\uff0c\u6309 updated_at \u5f53\u65e5\u589e\u91cf\u62bd\u53d6\u3002\", \"domain_key\": \"sales\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"status\", \"term_key\": \"wh_status_sales_order\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_so_order_item\", \"description\": \"\u9500\u552e\u5355\u660e\u7ec6\u884c ODS \u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff08\u6e90\u8868\u65e0\u65f6\u95f4\u6233\u5217\uff09\u3002\", \"domain_key\": \"sales\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_stock\", \"description\": \"\u5e93\u5b58\u4f59\u989d ODS \u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff0cqty_on_hand \u4e3a SKU \u73b0\u5b58\u91cf\u3002\", \"domain_key\": \"inventory\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_stock_flow\", \"description\": \"\u5e93\u5b58\u6d41\u6c34 ODS\uff0c\u6309 created_at \u5f53\u65e5\u589e\u91cf\u62bd\u53d6\uff0cbiz_type \u53d6 INIT/PO_RECEIVE/SO_SHIP/ADJUST\u3002\", \"domain_key\": \"inventory\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_supplier\", \"description\": \"\u4f9b\u5e94\u5546\u4e3b\u6570\u636e ODS \u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff0c\u542b contact_phone \u7b49\u8054\u7cfb\u65b9\u5f0f\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_ods\", \"wh_pii_phone\", \"wh_biz_sensitive\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}]}", - "updated_at": "2026-11-24 17:08:21", - "runs": 1 + "spec_json": "{\"domains\": [{\"key\": \"master\", \"name\": \"\u6570\u4ed3\u4e3b\u6570\u636e\u57df\", \"description\": \"\u4f9b\u5e94\u5546\u3001\u5ba2\u6237\u3001SKU \u53ca\u8de8\u7cfb\u7edf\u522b\u540d\u6620\u5c04\u7b49\u4e3b\u6570\u636e\u6e05\u6d17\u5feb\u7167\u57df\"}, {\"key\": \"purchase\", \"name\": \"\u6570\u4ed3\u91c7\u8d2d\u57df\", \"description\": \"\u91c7\u8d2d\u5355\u8349\u7a3f\u5230\u786e\u8ba4\u3001\u5165\u5e93\u5168\u94fe\u8def\u5355\u636e\u4e0e\u4f9b\u5e94\u5546\u65e5\u6c47\u603b\u57df\"}, {\"key\": \"sales\", \"name\": \"\u6570\u4ed3\u9500\u552e\u57df\", \"description\": \"\u9500\u552e\u5355\u8349\u7a3f\u5230\u786e\u8ba4\u3001\u51fa\u5e93\u5168\u94fe\u8def\u5355\u636e\u4e0e\u5ba2\u6237\u65e5\u6c47\u603b\u57df\"}, {\"key\": \"inventory\", \"name\": \"\u6570\u4ed3\u5e93\u5b58\u57df\", \"description\": \"\u5e93\u5b58\u4f59\u989d\u3001\u5e93\u5b58\u6d41\u6c34\u4e0e\u4f4e\u5e93\u5b58\u9884\u8b66\u76f8\u5173\u8868\u57df\"}, {\"key\": \"kpi\", \"name\": \"\u6570\u4ed3\u6307\u6807\u57df\", \"description\": \"ADS \u5c42\u91c7\u8d2d/\u9500\u552e\u65e5 KPI \u4e0e SKU \u9500\u552e TOP \u699c\u5e94\u7528\u6307\u6807\u57df\"}], \"tags\": [{\"key\": \"wh\", \"name\": \"wh\", \"description\": \"\u79bb\u7ebf\u6570\u4ed3\u7edf\u4e00\u6cbb\u7406\u6807\u7b7e\uff0c\u6807\u8bc6\u8be5\u8868\u7eb3\u5165\u6570\u4ed3\u5143\u6570\u636e\u7ba1\u7406\"}, {\"key\": \"wh_ods\", \"name\": \"wh_ods\", \"description\": \"ODS \u539f\u59cb\u843d\u5730\u5c42\uff0c\u6309\u5929\u62bd\u53d6\u7684\u4e1a\u52a1\u5e93\u5feb\u7167\u6216\u589e\u91cf\"}, {\"key\": \"wh_dwd\", \"name\": \"wh_dwd\", \"description\": \"DWD \u660e\u7ec6\u5c42\uff0c\u5168\u5386\u53f2\u53bb\u91cd\u5feb\u7167\u4e0e\u6e05\u6d17\u5bbd\u8868\"}, {\"key\": \"wh_dws\", \"name\": \"wh_dws\", \"description\": \"DWS \u65e5\u6c47\u603b\u5c42\uff0c\u6309\u4f9b\u5e94\u5546/\u5ba2\u6237/SKU \u7ef4\u5ea6\u7684\u65e5\u7c92\u5ea6\u6c47\u603b\"}, {\"key\": \"wh_ads\", \"name\": \"wh_ads\", \"description\": \"ADS \u5e94\u7528\u5c42\uff0c\u9762\u5411\u95ee\u6570\u4e0e\u770b\u677f\u7684\u6307\u6807\u7ed3\u679c\u8868\"}, {\"key\": \"wh_pii_phone\", \"name\": \"wh_pii_phone\", \"description\": \"\u542b\u8054\u7cfb\u7535\u8bdd\u7b49\u4e2a\u4eba\u7535\u8bdd\u4fe1\u606f\uff0c\u5bf9\u5916\u8f93\u51fa\u987b\u6309\u524d 3 \u540e 4 \u63a9\u7801\"}, {\"key\": \"wh_pii_id_card\", \"name\": \"wh_pii_id_card\", \"description\": \"\u542b\u8eab\u4efd\u8bc1\u53f7\u7b49\u4e2a\u4eba\u8eab\u4efd\u654f\u611f\u4fe1\u606f\uff0c\u987b\u8131\u654f\u4f7f\u7528\"}, {\"key\": \"wh_pii_bank\", \"name\": \"wh_pii_bank\", \"description\": \"\u542b\u94f6\u884c\u8d26\u53f7\u7b49\u91d1\u878d\u654f\u611f\u4fe1\u606f\uff0c\u987b\u8131\u654f\u4f7f\u7528\"}, {\"key\": \"wh_biz_sensitive\", \"name\": \"wh_biz_sensitive\", \"description\": \"\u542b\u8054\u7cfb\u4eba\u3001\u5730\u5740\u7b49\u4f9b\u5e94\u5546/\u5ba2\u6237\u5546\u4e1a\u654f\u611f\u4fe1\u606f\uff0c\u9650\u5185\u90e8\u6f14\u793a\u4f7f\u7528\"}, {\"key\": \"wh_demo\", \"name\": \"wh_demo\", \"description\": \"\u6f14\u793a\u73af\u5883\u865a\u6784\u6570\u636e\uff0c\u4e0d\u5f97\u7528\u4e8e\u751f\u4ea7\u51b3\u7b56\"}], \"terms\": [{\"key\": \"wh_metric_received_amount\", \"name\": \"\u91c7\u8d2d\u5165\u5e93\u91d1\u989d\", \"description\": \"\u5df2\u5165\u5e93\uff08RECEIVED\uff09\u91c7\u8d2d\u5355\u7684\u603b\u91d1\u989d\u4e4b\u548c\uff0c\u53e3\u5f84 SUM(po_order.total_amount) WHERE status='RECEIVED'\uff1b\u8349\u7a3f/\u5df2\u786e\u8ba4/\u4f5c\u5e9f\u4e0d\u8ba1\u5165\uff0c\u672c\u6708\u53e3\u5f84\u518d\u52a0 order_date \u5728\u5f53\u6708\uff08\u81ea\u7136\u6708\uff0cAsia/Shanghai\uff09\"}, {\"key\": \"wh_metric_shipped_amount\", \"name\": \"\u9500\u552e\u51fa\u5e93\u91d1\u989d\", \"description\": \"\u5df2\u51fa\u5e93\uff08SHIPPED\uff09\u9500\u552e\u5355\u7684\u603b\u91d1\u989d\u4e4b\u548c\uff0c\u53e3\u5f84 SUM(so_order.total_amount) WHERE status='SHIPPED'\uff1b\u672c\u6708\u53e3\u5f84\u518d\u52a0 order_date \u5728\u5f53\u6708\uff0c\u4f5c\u5e9f\u5355\u636e\u6c38\u4e0d\u8ba1\u91cf\"}, {\"key\": \"wh_metric_order_cnt\", \"name\": \"\u5355\u636e\u6570\", \"description\": \"\u4e0b\u5355\u6570\u6309 order_date=dt \u5bf9\u5355\u636e\u53bb\u91cd\u8ba1\u6570\uff1b\u5165\u5e93\u5355\u6570\u6309 received_at \u65e5\u671f=dt \u53bb\u91cd\u8ba1\u6570\uff0c\u51fa\u5e93\u5355\u6570\u6309 shipped_at \u65e5\u671f=dt \u53bb\u91cd\u8ba1\u6570\"}, {\"key\": \"wh_metric_low_stock\", \"name\": \"\u4f4e\u5e93\u5b58\u9884\u8b66\", \"description\": \"\u73b0\u5b58\u91cf < \u8be5 SKU \u5b89\u5168\u5e93\u5b58\uff08\u4e25\u683c\u5c0f\u4e8e\uff09\u5373\u89e6\u53d1\u4f4e\u5e93\u5b58\u9884\u8b66\uff0c\u7f3a\u53e3 gap_qty = \u5b89\u5168\u5e93\u5b58 - \u73b0\u5b58\u91cf\uff1b\u73b0\u5b58\u91cf\u53d6 inv_stock.qty_on_hand \u4e14\u4e0d\u5141\u8bb8\u4e3a\u8d1f\"}, {\"key\": \"wh_status_purchase_order\", \"name\": \"\u91c7\u8d2d\u5355\u72b6\u6001\", \"description\": \"\u679a\u4e3e DRAFT \u8349\u7a3f\uff08\u53ef\u7f16\u8f91/\u5220\u9664\uff09\u2192 CONFIRMED \u5df2\u786e\u8ba4\uff08\u5f85\u5165\u5e93\uff0c\u9501\u5b9a\u5185\u5bb9\uff09\u2192 RECEIVED \u5df2\u5165\u5e93\uff08\u7ec8\u6001\uff09\uff1bDRAFT/CONFIRMED \u53ef\u8fc1\u79fb\u81f3 CANCELLED \u5df2\u4f5c\u5e9f\uff08\u7559\u75d5\u7ec8\u6001\uff09\uff0c\u5df2\u5165\u5e93\u4e0d\u53ef\u4f5c\u5e9f\"}, {\"key\": \"wh_status_sales_order\", \"name\": \"\u9500\u552e\u5355\u72b6\u6001\", \"description\": \"\u679a\u4e3e DRAFT \u8349\u7a3f \u2192 CONFIRMED \u5df2\u786e\u8ba4\uff08\u5f85\u51fa\u5e93\uff09\u2192 SHIPPED \u5df2\u51fa\u5e93\uff08\u7ec8\u6001\uff0c\u5e93\u5b58\u5df2\u6263\u51cf\uff09\uff1bDRAFT/CONFIRMED \u53ef\u8fc1\u79fb\u81f3 CANCELLED \u5df2\u4f5c\u5e9f\uff08\u7559\u75d5\u7ec8\u6001\uff09\uff0c\u5df2\u51fa\u5e93\u4e0d\u53ef\u4f5c\u5e9f\"}, {\"key\": \"wh_concept_snapshot_partition\", \"name\": \"\u5168\u5386\u53f2\u5feb\u7167\u5206\u533a\", \"description\": \"\u6bcf\u4e2a dt \u5206\u533a\u5b58\u653e\u622a\u81f3\u5f53\u65e5\u6309 id \u53bb\u91cd\uff08ROW_NUMBER() OVER (PARTITION BY id ORDER BY updated_at DESC, dt DESC)\uff09\u540e\u7684\u5168\u91cf\u6e05\u6d17\u7ed3\u679c\uff1b\u660e\u7ec6\u884c\u65e0\u65f6\u95f4\u6233\u65f6\u6309 dt DESC \u53d6\u6700\u65b0\u5feb\u7167\"}, {\"key\": \"wh_rule_idempotent_overwrite\", \"name\": \"\u5206\u533a\u5e42\u7b49\u91cd\u5237\", \"description\": \"\u5168\u90e8 ETL \u91c7\u7528 INSERT OVERWRITE ... PARTITION(dt='${dt}') \u5206\u533a\u7ea7\u8986\u76d6\uff0c\u62bd\u53d6\u540c dt \u91cd\u8dd1\u5148\u5220 MinIO \u5206\u533a\u76ee\u5f55\u518d\u5199\uff1b\u8c03\u5ea6\u5168\u5c40\u53c2\u6570 dt=$[yyyy-MM-dd-1]\uff0c\u8865\u6570\u636e\u6216\u91cd\u8dd1\u540c\u4e00\u5929\u4e0d\u4f1a\u91cd\u590d\u7d2f\u52a0\"}], \"datasets\": [{\"table\": \"ods.ods_supplier\", \"description\": \"\u4f9b\u5e94\u5546\u4e3b\u6570\u636e\u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff08\u6765\u6e90 md_supplier\uff09\uff0c\u542b\u7f16\u7801\u3001\u540d\u79f0\u3001\u8054\u7cfb\u4eba\u3001\u5730\u5740\u3001\u8054\u7cfb\u7535\u8bdd\u7b49\u539f\u59cb\u5b57\u6bb5\uff0c\u4ec5\u505a\u539f\u59cb\u843d\u5730\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\", \"wh_pii_phone\", \"wh_biz_sensitive\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_customer\", \"description\": \"\u5ba2\u6237\u4e3b\u6570\u636e\u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff08\u6765\u6e90 md_customer\uff09\uff0c\u542b\u7f16\u7801\u3001\u540d\u79f0\u3001\u8054\u7cfb\u4eba\u3001\u5730\u5740\u3001\u8054\u7cfb\u7535\u8bdd\u7b49\u539f\u59cb\u5b57\u6bb5\uff0c\u4ec5\u505a\u539f\u59cb\u843d\u5730\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\", \"wh_pii_phone\", \"wh_biz_sensitive\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_sku\", \"description\": \"SKU \u4e3b\u6570\u636e\u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff08\u6765\u6e90 md_sku\uff09\uff0c\u542b\u5206\u7c7b\u3001\u89c4\u683c\u3001\u5355\u4f4d\u3001\u91c7\u8d2d\u4ef7\u3001\u9500\u552e\u4ef7\u4e0e\u5b89\u5168\u5e93\u5b58\uff0c\u4ec5\u505a\u539f\u59cb\u843d\u5730\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_alias_mapping\", \"description\": \"\u8de8\u7cfb\u7edf\u522b\u540d\u6620\u5c04\u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff08\u6765\u6e90 mdm_alias_mapping\uff09\uff0centity_type \u53d6 SUPPLIER/CUSTOMER/SKU \u5e76\u5206\u522b\u6307\u5411\u5bf9\u5e94\u4e3b\u6863\uff0c\u7528\u4e8e\u5b9e\u4f53\u89e3\u6790\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_po_order\", \"description\": \"\u91c7\u8d2d\u5355\u5934\u6309 updated_at \u5f53\u65e5\u589e\u91cf\u7684\u539f\u59cb\u843d\u5730\u8868\uff0c\u542b\u5355\u53f7\u3001\u4f9b\u5e94\u5546\u3001\u72b6\u6001\u3001\u603b\u91d1\u989d\u4e0e\u5165\u5e93\u65f6\u95f4\u3002\", \"domain_key\": \"purchase\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"status\", \"term_key\": \"wh_status_purchase_order\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_po_order_item\", \"description\": \"\u91c7\u8d2d\u5355\u660e\u7ec6\u884c\u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff08\u6e90\u8868\u65e0\u65f6\u95f4\u6233\u5217\uff09\uff0c\u542b\u884c\u53f7\u3001SKU\u3001\u6570\u91cf\u3001\u5355\u4ef7\u4e0e\u884c\u91d1\u989d\u3002\", \"domain_key\": \"purchase\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_so_order\", \"description\": \"\u9500\u552e\u5355\u5934\u6309 updated_at \u5f53\u65e5\u589e\u91cf\u7684\u539f\u59cb\u843d\u5730\u8868\uff0c\u542b\u5355\u53f7\u3001\u5ba2\u6237\u3001\u72b6\u6001\u3001\u603b\u91d1\u989d\u4e0e\u51fa\u5e93\u65f6\u95f4\u3002\", \"domain_key\": \"sales\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"status\", \"term_key\": \"wh_status_sales_order\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_so_order_item\", \"description\": \"\u9500\u552e\u5355\u660e\u7ec6\u884c\u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff08\u6e90\u8868\u65e0\u65f6\u95f4\u6233\u5217\uff09\uff0c\u542b\u884c\u53f7\u3001SKU\u3001\u6570\u91cf\u3001\u5355\u4ef7\u4e0e\u884c\u91d1\u989d\u3002\", \"domain_key\": \"sales\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_stock\", \"description\": \"\u5e93\u5b58\u4f59\u989d\u6bcf\u65e5\u5168\u91cf\u5feb\u7167\uff08\u6765\u6e90 inv_stock\uff09\uff0c\u542b SKU \u73b0\u5b58\u91cf\u4e0e\u66f4\u65b0\u65f6\u95f4\u3002\", \"domain_key\": \"inventory\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ods.ods_stock_flow\", \"description\": \"\u5e93\u5b58\u6d41\u6c34\u6309 created_at \u5f53\u65e5\u589e\u91cf\u7684\u539f\u59cb\u843d\u5730\u8868\uff0cbiz_type \u53d6 INIT/PO_RECEIVE/SO_SHIP/ADJUST\uff0c\u6d41\u6c34\u53ea\u589e\u4e0d\u6539\u4e0d\u5220\u3002\", \"domain_key\": \"inventory\", \"tags\": [\"wh\", \"wh_ods\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_supplier_df\", \"description\": \"\u4f9b\u5e94\u5546\u7ef4\u8868\u6e05\u6d17\u5feb\u7167\uff0c\u6309 id \u53bb\u91cd\u53d6\u6700\u65b0\u7248\u672c\uff0c\u4fdd\u7559\u7f16\u7801\u3001\u540d\u79f0\u3001\u8054\u7cfb\u4eba\u3001\u5730\u5740\u3001\u8054\u7cfb\u7535\u8bdd\u4e0e\u72b6\u6001\uff08ACTIVE/DISABLED/VOID\uff09\uff0c\u4f9b\u91c7\u8d2d\u5bbd\u8868\u5173\u8054\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_demo\", \"wh_pii_phone\", \"wh_biz_sensitive\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_customer_df\", \"description\": \"\u5ba2\u6237\u7ef4\u8868\u6e05\u6d17\u5feb\u7167\uff0c\u6309 id \u53bb\u91cd\u53d6\u6700\u65b0\u7248\u672c\uff0c\u4fdd\u7559\u7f16\u7801\u3001\u540d\u79f0\u3001\u8054\u7cfb\u4eba\u3001\u5730\u5740\u3001\u8054\u7cfb\u7535\u8bdd\u4e0e\u72b6\u6001\uff08ACTIVE/DISABLED/VOID\uff09\uff0c\u4f9b\u9500\u552e\u5bbd\u8868\u5173\u8054\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_demo\", \"wh_pii_phone\", \"wh_biz_sensitive\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_sku_df\", \"description\": \"SKU \u7ef4\u8868\u6e05\u6d17\u5feb\u7167\uff0c\u6309 id \u53bb\u91cd\u53d6\u6700\u65b0\u7248\u672c\uff0c\u542b\u5206\u7c7b\u3001\u89c4\u683c\u3001\u5355\u4f4d\u3001\u91c7\u8d2d\u4ef7\u3001\u9500\u552e\u4ef7\u3001\u5b89\u5168\u5e93\u5b58\u4e0e\u72b6\u6001\uff0c\u662f\u4f4e\u5e93\u5b58\u9884\u8b66\u7684\u5b89\u5168\u5e93\u5b58\u53e3\u5f84\u6765\u6e90\u3002\", \"domain_key\": \"master\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_purchase_order_df\", \"description\": \"\u91c7\u8d2d\u8ba2\u5355\u660e\u7ec6\u5bbd\u8868\uff0c\u7c92\u5ea6\u4e3a\u4e00\u5355\u4e00\u884c\uff08\u5355\u5934\u00d7\u660e\u7ec6\u884c\u00d7\u4f9b\u5e94\u5546\u00d7SKU\uff09\uff0c\u6bcf\u4e2a dt \u5206\u533a\u4e3a\u622a\u81f3\u5f53\u65e5\u6309 id \u53bb\u91cd\u7684\u5168\u5386\u53f2\u6e05\u6d17\u5feb\u7167\uff1b\u884c\u91d1\u989d=\u6570\u91cf\u00d7\u5355\u4ef7\uff0c\u7531\u670d\u52a1\u5c42\u6309 2 \u4f4d\u5c0f\u6570 HALF_UP \u843d\u5e93\u3002\", \"domain_key\": \"purchase\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_demo\"], \"term_fields\": [{\"field\": \"status\", \"term_key\": \"wh_status_purchase_order\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_sales_order_df\", \"description\": \"\u9500\u552e\u8ba2\u5355\u660e\u7ec6\u5bbd\u8868\uff0c\u7c92\u5ea6\u4e3a\u4e00\u5355\u4e00\u884c\uff08\u5355\u5934\u00d7\u660e\u7ec6\u884c\u00d7\u5ba2\u6237\u00d7SKU\uff09\uff0c\u6bcf\u4e2a dt \u5206\u533a\u4e3a\u622a\u81f3\u5f53\u65e5\u6309 id \u53bb\u91cd\u7684\u5168\u5386\u53f2\u6e05\u6d17\u5feb\u7167\uff1b\u884c\u91d1\u989d=\u6570\u91cf\u00d7\u5355\u4ef7\uff0c\u51fa\u5e93\u524d\u9010\u884c\u6821\u9a8c\u5e93\u5b58\u5145\u8db3\uff0c\u4efb\u4e00 SKU \u4e0d\u8db3\u5219\u6574\u5355\u56de\u6eda\u3002\", \"domain_key\": \"sales\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_demo\"], \"term_fields\": [{\"field\": \"status\", \"term_key\": \"wh_status_sales_order\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dwd.dwd_stock_flow_df\", \"description\": \"\u5e93\u5b58\u6d41\u6c34\u660e\u7ec6\u5bbd\u8868\uff0c\u7c92\u5ea6\u4e3a\u4e00\u7b14\u6d41\u6c34\u00d7SKU\uff0c\u6bcf\u4e2a dt \u5206\u533a\u4e3a\u622a\u81f3\u5f53\u65e5\u6309 id \u53bb\u91cd\u7684\u5168\u5386\u53f2\u5feb\u7167\uff1b\u542b biz_type\uff08INIT/PO_RECEIVE/SO_SHIP/ADJUST\uff09\u3001\u53d8\u52a8\u91cf\uff08\u6b63\u5165\u8d1f\u51fa\uff09\u4e0e\u53d8\u52a8\u540e\u7ed3\u5b58\uff0c\u7528\u4e8e\u7a3d\u6838\u73b0\u5b58\u91cf=\u03a3\u6d41\u6c34\u53d8\u52a8\u3002\", \"domain_key\": \"inventory\", \"tags\": [\"wh\", \"wh_dwd\", \"wh_demo\"], \"term_fields\": [{\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dws.dws_purchase_supplier_1d\", \"description\": \"\u4f9b\u5e94\u5546\u00d7\u65e5\u7c92\u5ea6\u91c7\u8d2d\u6c47\u603b\u8868\uff1aorder_cnt \u6309\u4e0b\u5355\u65e5\u671f order_date=dt \u53bb\u91cd\u8ba1\u6570\uff0creceived_order_cnt \u6309 received_at \u65e5\u671f=dt \u53bb\u91cd\u8ba1\u6570\uff0creceived_qty \u4e3a\u5165\u5e93\u6570\u91cf\uff0creceived_amount \u4e3a RECEIVED \u72b6\u6001\u5355\u636e\u91d1\u989d\u4e4b\u548c\u3002\", \"domain_key\": \"purchase\", \"tags\": [\"wh\", \"wh_dws\", \"wh_demo\"], \"term_fields\": [{\"field\": \"received_amount\", \"term_key\": \"wh_metric_received_amount\"}, {\"field\": \"order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"received_order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dws.dws_sales_customer_1d\", \"description\": \"\u5ba2\u6237\u00d7\u65e5\u7c92\u5ea6\u9500\u552e\u6c47\u603b\u8868\uff1aorder_cnt \u6309 order_date=dt \u53bb\u91cd\u8ba1\u6570\uff0cshipped_order_cnt \u6309\u51fa\u5e93\u65f6\u95f4\u53bb\u91cd\u8ba1\u6570\uff0cshipped_qty \u4e3a\u51fa\u5e93\u6570\u91cf\uff0cshipped_amount \u4e3a SHIPPED \u72b6\u6001\u5355\u636e\u91d1\u989d\u4e4b\u548c\u3002\", \"domain_key\": \"sales\", \"tags\": [\"wh\", \"wh_dws\", \"wh_demo\"], \"term_fields\": [{\"field\": \"shipped_amount\", \"term_key\": \"wh_metric_shipped_amount\"}, {\"field\": \"order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"shipped_order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"dws.dws_sku_stock_1d\", \"description\": \"SKU\u00d7\u65e5\u7c92\u5ea6\u5e93\u5b58\u6c47\u603b\u8868\uff1aqty_on_hand \u4e3a\u5f53\u65e5\u7ed3\u5b58\uff0csafety_stock \u53d6\u81ea SKU \u4e3b\u6570\u636e\uff0clow_stock \u4e3a\u4f4e\u5e93\u5b58\u6807\u5fd7\uff08\u73b0\u5b58\u91cf\u4e25\u683c\u5c0f\u4e8e\u5b89\u5168\u5e93\u5b58\uff09\uff0c\u5e76\u542b\u5f53\u65e5 in_qty_1d/out_qty_1d \u51fa\u5165\u5e93\u6570\u91cf\u3002\", \"domain_key\": \"inventory\", \"tags\": [\"wh\", \"wh_dws\", \"wh_demo\"], \"term_fields\": [{\"field\": \"low_stock\", \"term_key\": \"wh_metric_low_stock\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ads.ads_purchase_kpi_1d\", \"description\": \"\u91c7\u8d2d\u65e5 KPI \u5e94\u7528\u8868\uff0c\u6309 stat_date/dt \u4e00\u884c\uff1a\u6d3b\u8dc3\u4f9b\u5e94\u5546\u6570\u3001\u5355\u636e\u6570\u3001\u7d2f\u8ba1\u5165\u5e93\u91d1\u989d\u4e0e\u5f53\u6708\u7d2f\u8ba1\u5165\u5e93\u91d1\u989d\u3001\u5165\u5e93\u5355\u6570\uff0c\u91d1\u989d\u53ea\u7edf\u8ba1 RECEIVED \u72b6\u6001\uff0c\u6708\u7d2f\u8ba1\u4e3a\u626b\u63cf\u5f53\u6708\u5404\u65e5 DWS \u91d1\u989d\u4e4b\u548c\u3002\", \"domain_key\": \"kpi\", \"tags\": [\"wh\", \"wh_ads\", \"wh_demo\"], \"term_fields\": [{\"field\": \"received_amount\", \"term_key\": \"wh_metric_received_amount\"}, {\"field\": \"received_amount_month\", \"term_key\": \"wh_metric_received_amount\"}, {\"field\": \"order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"received_order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ads.ads_sales_kpi_1d\", \"description\": \"\u9500\u552e\u65e5 KPI \u5e94\u7528\u8868\uff0c\u6309 stat_date/dt \u4e00\u884c\uff1a\u6d3b\u8dc3\u5ba2\u6237\u6570\u3001\u5355\u636e\u6570\u3001\u7d2f\u8ba1\u51fa\u5e93\u91d1\u989d\u4e0e\u5f53\u6708\u7d2f\u8ba1\u51fa\u5e93\u91d1\u989d\u3001\u51fa\u5e93\u5355\u6570\uff0c\u91d1\u989d\u53ea\u7edf\u8ba1 SHIPPED \u72b6\u6001\uff0c\u4f5c\u5e9f\u5355\u636e\u4e0d\u8ba1\u5165\u3002\", \"domain_key\": \"kpi\", \"tags\": [\"wh\", \"wh_ads\", \"wh_demo\"], \"term_fields\": [{\"field\": \"shipped_amount\", \"term_key\": \"wh_metric_shipped_amount\"}, {\"field\": \"shipped_amount_month\", \"term_key\": \"wh_metric_shipped_amount\"}, {\"field\": \"order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"shipped_order_cnt\", \"term_key\": \"wh_metric_order_cnt\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ads.ads_sku_top_sale_1d\", \"description\": \"\u8fd1 30 \u5929\u51fa\u5e93\u91d1\u989d TOP10 SKU \u699c\u5355\u5e94\u7528\u8868\uff0c\u542b\u6392\u540d\u3001\u8fd1 30 \u5929\u51fa\u5e93\u91d1\u989d\u4e0e\u51fa\u5e93\u6570\u91cf\u3001SKU \u7f16\u7801\u540d\u79f0\u4e0e\u5355\u4f4d\uff0c\u6309 dt \u5206\u533a\u8f93\u51fa\u5f53\u65e5\u699c\u5355\u3002\", \"domain_key\": \"kpi\", \"tags\": [\"wh\", \"wh_ads\", \"wh_demo\"], \"term_fields\": [{\"field\": \"shipped_amount_30d\", \"term_key\": \"wh_metric_shipped_amount\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}, {\"table\": \"ads.ads_stock_alert_1d\", \"description\": \"\u4f4e\u5e93\u5b58\u9884\u8b66\u6e05\u5355\u5e94\u7528\u8868\uff0c\u9010 SKU \u8f93\u51fa\u7ed3\u5b58\u3001\u5b89\u5168\u5e93\u5b58\u4e0e\u7f3a\u53e3 gap_qty=\u5b89\u5168\u5e93\u5b58-\u73b0\u5b58\u91cf\uff0c\u7b5b\u9009\u6761\u4ef6\u4e3a\u73b0\u5b58\u91cf\u4e25\u683c\u5c0f\u4e8e\u5b89\u5168\u5e93\u5b58\uff0c\u5e76\u5e26\u5f53\u65e5\u51fa\u5e93\u91cf\u3002\", \"domain_key\": \"inventory\", \"tags\": [\"wh\", \"wh_ads\", \"wh_demo\"], \"term_fields\": [{\"field\": \"gap_qty\", \"term_key\": \"wh_metric_low_stock\"}, {\"field\": \"dt\", \"term_key\": \"wh_concept_snapshot_partition\"}]}]}", + "updated_at": "2026-11-24 17:13:18", + "runs": 2 } \ No newline at end of file