數(shù)據(jù)治理中的一個(gè)重要基礎(chǔ)工作是分析組織中數(shù)據(jù)的血緣關(guān)系。有了完整的數(shù)據(jù)血緣關(guān)系sql存儲(chǔ)過(guò)程怎么寫(xiě),我們可以用它進(jìn)行數(shù)據(jù)溯源、表和字段變更的影響分析、數(shù)據(jù)合規(guī)性的證明、數(shù)據(jù)質(zhì)量的檢查等。

分析數(shù)據(jù)血緣的方法主要分為四類(lèi):

本文以 為例,來(lái)說(shuō)明如何分析 SQL 和存儲(chǔ)過(guò)程中的數(shù)據(jù)血緣。

產(chǎn)生數(shù)據(jù)血緣的 SQL 語(yǔ)句

curl -X POST "https://api.gudusoft.com/gspLive_backend/user/generateToken" -H  "Request-Origion:testClientDemo" -H  "accept:application/json;charset=utf-8" -H  "Content-Type:application/x-www-form-urlencoded;charset=UTF-8" -d "secretKey=YOUR SECRET KEY" -d "userId=YOUR USER ID HERE"

curl -X POST "https://api.gudusoft.com/gspLive_backend/sqlflow/generation/sqlflow?showRelationType=fdd" -H  "Request-Origion:testClientDemo" -H  "accept:application/json;charset=utf-8" -H  "Content-Type:multipart/form-data" -F "sqlfile=" -F "dbvendor=dbvoracle" -F "ignoreRecordSet=true" -F "simpleOutput=false" -F "sqltext=create view v_sal(mySal) as select  sal + commission as totalSal from emp;" -F "userId=YOUR USER ID HERE"  -F "token=YOUR TOKEN HERE"

"relations": [
{ "id": "3", "type": "fdd", "effectType": "create_view", "target": { "id": "11", "column": "mySal", "parentId": "9", "parentName": "v_sal", }, "sources": [ { "id": "3", "column": "sal", "parentId": "2", "parentName": "emp", }, { "id": "4", "column": "commission", "parentId": "2", "parentName": "emp", } ], "processId": "10" }]

更詳細(xì)的信息見(jiàn)官網(wǎng) API()

小結(jié)

本文介紹了如何通過(guò)分析 的 SQL 語(yǔ)句和存儲(chǔ)過(guò)程來(lái)獲取組織中的數(shù)據(jù)血緣sql存儲(chǔ)過(guò)程怎么寫(xiě),從而更好的進(jìn)行數(shù)據(jù)治理。

并介紹了如何利用 工具把分析 SQL 語(yǔ)句中的數(shù)據(jù)血緣工作自動(dòng)化sql存儲(chǔ)過(guò)程怎么寫(xiě),提高數(shù)據(jù)自理效率和水平。

免責(zé)聲明:本文系轉(zhuǎn)載,版權(quán)歸原作者所有;旨在傳遞信息,不代表本站的觀點(diǎn)和立場(chǎng)和對(duì)其真實(shí)性負(fù)責(zé)。如需轉(zhuǎn)載,請(qǐng)聯(lián)系原作者。如果來(lái)源標(biāo)注有誤或侵犯了您的合法權(quán)益或者其他問(wèn)題不想在本站發(fā)布,來(lái)信即刪。