Files
MarketAnalysis-Rebuild/External All Channel.SemanticModel/definition/tables/DM_AUTH_NONSALES_TA.tmdl
2026-03-29 14:24:01 +08:00

94 lines
1.9 KiB
Plaintext

table DM_AUTH_NONSALES_TA
lineageTag: e5fd7c58-15d2-40f0-af28-f086c4b671aa
column USER_KCODE
dataType: string
lineageTag: a3208e18-37c8-430f-9fa0-4ee0af022485
summarizeBy: none
sourceColumn: USER_KCODE
annotation SummarizationSetBy = Automatic
column USER_ROLE
dataType: string
lineageTag: 92959efc-74bd-408e-8ab1-27db972e6f92
summarizeBy: none
sourceColumn: USER_ROLE
annotation SummarizationSetBy = Automatic
column TA_CODE
dataType: string
lineageTag: 7d20db57-31f7-48a3-8f07-312a9033cc76
summarizeBy: none
sourceColumn: TA_CODE
annotation SummarizationSetBy = Automatic
column TA
dataType: string
lineageTag: 16ccf62d-f770-41ca-9b46-3c334923ba66
summarizeBy: none
sourceColumn: TA
annotation SummarizationSetBy = Automatic
partition DM_AUTH_NONSALES_TA = m
mode: import
queryGroup: OLD\EXTERNAL_权限表
source = ```
let
Source =
Value.NativeQuery(
Databricks.Catalogs(
ServerAddress, HttpPath, [
Catalog = CatalogName,
Database = null,
EnableAutomaticProxyDiscovery = null,EnableQueryResultDownload="0"
]
){
[Name = CatalogName, Kind = "Database"]
}[Data],
"
WITH
TEMP_TABLE (
SELECT
USER_KCODE,
USER_ROLE,
TA_CODE,
TA
FROM
dm.dm_auth_nonsales_ta
)
SELECT
*
FROM
TEMP_TABLE
UNION ALL
SELECT
USER_KCODE,
NULL USER_ROLE,
NULL TA_CODE,
'ALL' TA
FROM
TEMP_TABLE
GROUP BY
1
"
& UsingLimit,
null,
[
EnableFolding = true
]
)
in
Source
```
annotation PBI_NavigationStepName = 导航
annotation PBI_ResultType = Exception
annotation TabularEditor_TableGroup = 06_AuthTable