-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlineage_query_output.json
More file actions
59 lines (59 loc) · 1.49 KB
/
Copy pathlineage_query_output.json
File metadata and controls
59 lines (59 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"target": {
"table": "ICL.CUSTOMER_DAILY_SNAPSHOT",
"field": "CUSTOMER_TIER"
},
"direction": "upstream",
"summary": {
"node_count": 4,
"edge_count": 3,
"max_depth": 2
},
"nodes": [
{
"id": "ICL.CUSTOMER_DAILY_SNAPSHOT.CUSTOMER_TIER",
"table": "ICL.CUSTOMER_DAILY_SNAPSHOT",
"field": "CUSTOMER_TIER",
"layer": "ICL",
"role": "target"
},
{
"id": "IOL.ACCOUNT_BALANCE.ACCT_BALANCE",
"table": "IOL.ACCOUNT_BALANCE",
"field": "ACCT_BALANCE",
"layer": "IOL",
"role": "source"
},
{
"id": "IML.CUSTOMER_PROFILE.CUST_ID",
"table": "IML.CUSTOMER_PROFILE",
"field": "CUST_ID",
"layer": "IML",
"role": "join_key"
},
{
"id": "IOL.ACCOUNT_BALANCE.CUST_ID",
"table": "IOL.ACCOUNT_BALANCE",
"field": "CUST_ID",
"layer": "IOL",
"role": "join_key"
}
],
"edges": [
{
"source": "IOL.ACCOUNT_BALANCE.ACCT_BALANCE",
"target": "ICL.CUSTOMER_DAILY_SNAPSHOT.CUSTOMER_TIER",
"transform": "CASE WHEN ACCT_BALANCE > 100000 THEN 'VIP' ELSE 'STANDARD' END"
},
{
"source": "IML.CUSTOMER_PROFILE.CUST_ID",
"target": "ICL.CUSTOMER_DAILY_SNAPSHOT.CUSTOMER_TIER",
"transform": "LEFT JOIN customer profile to account balance"
},
{
"source": "IOL.ACCOUNT_BALANCE.CUST_ID",
"target": "ICL.CUSTOMER_DAILY_SNAPSHOT.CUSTOMER_TIER",
"transform": "LEFT JOIN account balance to customer profile"
}
]
}