0401修改
This commit is contained in:
@@ -186,24 +186,6 @@ table Fact_Sales
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column STORE_TYPE_SOURCE = [STORE_TYPE] & [DATA_SOURCE]
|
||||
lineageTag: 1152f877-9d11-4ad8-a4e9-e56b2d9ae477
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PLATFORM_TYPE_SOURCE = [PLATFORM_TYPE] & [DATA_SOURCE]
|
||||
lineageTag: 3799fa82-b187-48de-9085-e7eb56137e2d
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column STORE_PLATFORM = [STORE_TYPE] & " - " & [PLATFORM_TYPE]
|
||||
lineageTag: 8b9050d4-c7f6-4a0e-9d00-1aff75be6332
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column CMPS_FLAG
|
||||
dataType: int64
|
||||
formatString: 0
|
||||
@@ -233,12 +215,6 @@ table Fact_Sales
|
||||
|
||||
annotation PBI_FormatHint = {"isGeneralNumber":true}
|
||||
|
||||
column DEPT_SOURCE = [dept_name] & [DATA_SOURCE]
|
||||
lineageTag: d633ff86-610c-4194-9637-0943ed386d75
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column DEPT_NAME
|
||||
dataType: string
|
||||
lineageTag: 55ee1c72-c8d5-4bfc-8e89-bfec08ada73c
|
||||
@@ -272,18 +248,6 @@ table Fact_Sales
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column HP_SOURCE = [AIA_HP_FLAG] & [DATA_SOURCE]
|
||||
lineageTag: 70317408-2faf-4425-a64c-912904705571
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column INST_SOURCE = [INST_CODE] & [DATA_SOURCE]
|
||||
lineageTag: a4bfd8bf-f30f-4d48-9d28-6e3d6fb2023f
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column H_LEVEL
|
||||
dataType: int64
|
||||
lineageTag: 93973569-c447-41e6-b741-672a6539d97f
|
||||
@@ -310,24 +274,6 @@ table Fact_Sales
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PRESCRIPTION_SOURCE = [PRESCRIPTION_TYPE] & [DATA_SOURCE]
|
||||
lineageTag: f7a5c002-152a-4f10-b177-ef6b5cc21719
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column REIMBURSETYPE_SOURCE = [REIMBURSE_TYPE] & [DATA_SOURCE]
|
||||
lineageTag: beb9f5b1-422d-4432-9d52-5083dad9f0db
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column REIMBURSE_SOURCE = [REIMBURSE] & [DATA_SOURCE]
|
||||
lineageTag: 02bac298-0bb2-44d6-9c74-9bf37f75af03
|
||||
summarizeBy: none
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PRESCRIPTION_TYPE
|
||||
dataType: string
|
||||
lineageTag: 45ea0f30-12b1-4e20-93ea-e5cb2d06828a
|
||||
@@ -564,6 +510,78 @@ table Fact_Sales
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column STORE_TYPE_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 430d4e99-08f2-4ded-a21c-4e52d19caf84
|
||||
summarizeBy: none
|
||||
sourceColumn: STORE_TYPE_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column STORE_PLATFORM
|
||||
dataType: string
|
||||
lineageTag: 757ab79c-ffaa-40b9-a2db-44a977ff1b41
|
||||
summarizeBy: none
|
||||
sourceColumn: STORE_PLATFORM
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column REIMBURSETYPE_SOURCE
|
||||
dataType: string
|
||||
lineageTag: ce0f0ae2-6cf9-4ecb-876e-720b5d09bfed
|
||||
summarizeBy: none
|
||||
sourceColumn: REIMBURSETYPE_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column REIMBURSE_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 95c84fd0-f40c-4473-9bae-95e405df3c53
|
||||
summarizeBy: none
|
||||
sourceColumn: REIMBURSE_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PRESCRIPTION_SOURCE
|
||||
dataType: string
|
||||
lineageTag: e04b9537-3b7f-4ec8-aedc-07c077e73269
|
||||
summarizeBy: none
|
||||
sourceColumn: PRESCRIPTION_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column PLATFORM_TYPE_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 9c2d6c1c-e17c-4f94-aaa6-41e9d5065656
|
||||
summarizeBy: none
|
||||
sourceColumn: PLATFORM_TYPE_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column DEPT_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 2e332296-d864-4799-b97c-3d6fb4066702
|
||||
summarizeBy: none
|
||||
sourceColumn: DEPT_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column INST_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 3c319b8d-3dfe-4a24-981e-d5810532af61
|
||||
summarizeBy: none
|
||||
sourceColumn: INST_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
column HP_SOURCE
|
||||
dataType: string
|
||||
lineageTag: 5c652aa6-ab3e-4bca-982d-9d38f6bef113
|
||||
summarizeBy: none
|
||||
sourceColumn: HP_SOURCE
|
||||
|
||||
annotation SummarizationSetBy = Automatic
|
||||
|
||||
partition Fact_Sales = m
|
||||
mode: import
|
||||
queryGroup: Fact_Sales
|
||||
@@ -610,6 +628,16 @@ table Fact_Sales
|
||||
CONCAT(AUDIT_COD,DATA_SOURCE) AS AUDIT_SOURCE,
|
||||
CONCAT(AUDIT_COD,DATA_SOURCE,'' ) AS AUDIT_KEY,
|
||||
CONCAT(MARKET,CLASS,DATA_SOURCE) AS CLASS_KEY,
|
||||
|
||||
CONCAT(STORE_TYPE,DATA_SOURCE) AS STORE_TYPE_SOURCE,
|
||||
CONCAT(STORE_TYPE,'-',PLATFORM_TYPE) AS STORE_PLATFORM,
|
||||
CONCAT(REIMBURSE_TYPE,DATA_SOURCE) AS REIMBURSETYPE_SOURCE,
|
||||
CONCAT(REIMBURSE,DATA_SOURCE) AS REIMBURSE_SOURCE,
|
||||
CONCAT(PRESCRIPTION_TYPE,DATA_SOURCE) AS PRESCRIPTION_SOURCE,
|
||||
CONCAT(PLATFORM_TYPE,DATA_SOURCE) AS PLATFORM_TYPE_SOURCE,
|
||||
CONCAT(dept_name,DATA_SOURCE) AS DEPT_SOURCE,
|
||||
CONCAT(INST_CODE,DATA_SOURCE) AS INST_SOURCE,
|
||||
CONCAT(AIA_HP_FLAG,DATA_SOURCE) AS HP_SOURCE,
|
||||
-------------------------------------
|
||||
--Retail藏数逻辑标签------------------
|
||||
PACK_FLAG,
|
||||
@@ -645,13 +673,10 @@ table Fact_Sales
|
||||
MERGED_DATA_DTP_OTHERS,
|
||||
EGFR_FLAG,
|
||||
-------------------------------------
|
||||
CORP_COD
|
||||
NULL AS CORP_COD
|
||||
from
|
||||
DM.DM_TF_EXT_UNIONALL_SALES_MAPPING
|
||||
--where
|
||||
--DATA_SOURCE = 'THC(Quarterly)'
|
||||
--and yyyymm >= 202501
|
||||
"
|
||||
"& Fact_Sales_SQL_limit
|
||||
& UsingLimit,
|
||||
null,
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user