-
Notifications
You must be signed in to change notification settings - Fork 1
/
zestRecon_2.yml
56 lines (51 loc) · 1.79 KB
/
zestRecon_2.yml
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
zestRecon_1:
rules :
fileFormat:
# Load file if file name start with 'nameFormat'
# In case of multiple sheets which sheet to load
Piramal-Recon-File:
nameFormat: "Piramal-Recon-File"
Portfolio Report:
nameFormat: "Portfolio Report"
validationRules :
Piramal-Recon-File :
# Loads only the required columns in dataframe
# Also checks if required columns are present
checkColumns :
- "LOAN_AMOUNT"
- "LENDER_LOAN_ID"
Portfolio Report :
checkColumns :
- "Loan Reference"
- "Loan Amount"
transformationRules :
Piramal-Recon-File :
createColumns:
LOAN_AMOUNT : "CAST(REGEXP_REPLACE(`LOAN_AMOUNT`, ',', '') AS DOUBLE)"
Portfolio Report:
createColumns:
Loan Amount : "CAST(REGEXP_REPLACE(`Loan Amount`, ',', '') AS DOUBLE)"
mergeRows :
# ************************* IMPORTANT *****************************
# Columns with UNIQUE operation should be placed above SUM operation
Piramal-Recon-File :
requiredColumns :
- "LENDER_LOAN_ID"
- "LOAN_AMOUNT"
uniqueColumn_UID : "LENDER_LOAN_ID"
columnMergeType :
LOAN_AMOUNT : "UNIQUE"
Portfolio Report:
requiredColumns:
- "Loan Reference"
- "Loan Amount"
uniqueColumn_UID: "Loan Reference"
columnMergeType :
Loan Amount : "UNIQUE"
matchingRules :
matchCondition : "df1.`LENDER_LOAN_ID` = df2.`Loan Reference` AND df1.`LOAN_AMOUNT` = df2.`Loan Amount`"
# Defines that all rows in file 1 should have a match
fileMatchType:
Piramal-Recon-File : "ALL"
# Defines that some rows in file 2 may or may not have a match
Portfolio Report : "SOME"