> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SA ETL for DRC

> Overview of the SA ETL process for Default Risk Charge in Atoti FRTB, including a field-by-field breakdown of the DRC CSV input data file

This page provides an overview of ETL for DRC.

It also provides a table showing the fields that are included in each row of a DRC CSV Input Data file, indicating which Stores these fields are copied to
during the ETL process.

Additionally, it shows which are the key fields for vector creation and which fields have the potential to be populated with vectors, as opposed to always
containing scalar values.

## Vectorization and interpolation

No vectorization is used within the ETL procedure for DRC; therefore
no interpolation is required either.

## Normalization

### DRC-relevant stores

The stores that are relevant for DRC are:

| Stores |
| - |
| SASensitivities |
| RiskFactorDescription |
| Tranche |
| Obligor |
| Security |

 

## Mapping SA DRC CSV file fields onto the stores that they populate

| Field from CSV file | SASensitivities | RiskFactorDescription | Tranche | Obligor | Security |
| - | - | - | - | - | - |
| AsOfDate | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(AsOfDate) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(AsOfDate) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(AsOfDate) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(AsOfDate) | |
| TradeId | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(TradeId) | | | | |
| RiskClass | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(RiskClass) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(RiskClass) | | | |
| Risk Factor | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(ObligorId) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Risk Factor) | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(ObligorId) | |
| ObligorCategory | | | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(ObligorCategory) | |
| Instrument LGD Type | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Instrument LGD Type) | | | | |
| Seniority | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Seniority) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Seniority) | | | |
| direction | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Direction) | | | | |
| maturity | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Maturity) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Maturity) | | | |
| rating | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Rating) | | | | |
| notional | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Notional) | | | | |
| PresentValue | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(MarketValue) | | | | |
| GrossJTD | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(GrossJTD) | | | | |
| ccy | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(GrossJTDCcy) | | | | |
| Underlying | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Tranche) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Underlying) | | | |
| region | | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Region) | | |
| asset\_class | | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(AssetClass) | | |
| attachment | | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Attachment) | | |
| detachment | | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Detachment) | | |
| RecoveryRates | | | | | |
| RecoveryValues | | | | | |
| rating type | | | | | |
| RiskWeight | | | | | |
| Adjustment | | | | | |
| Bucket | | | | | |
| Zero Risk Weight | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Zero Risk Weight) | | | |
| DRC Fund Treatment | | | | | |
| ContractualMaturity | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(ContractualMaturity) | | | | |

Each tuple is built from the file columns whose names match the store fields. `DefaultRiskChargeTuplePublisher` overrides `Risk Measure` and `Maturity` on the RiskFactorDescription tuple, and `ContractualMaturity` on the SASensitivities tuple. The `ContractualMaturity` column is read only when the `frtb.eu-da.drc-contractual-maturity.enabled` property is set to `true` (default `false`). An empty cell stores the `Maturity` value of the row. For the column, see [SA DRC trade](https://docs.activeviam.com/solutions/frtb/6.0/input-files/sa-drc-trade.md).

## Column calculators and tuple publishers

No Column Calculators are used within the ETL procedure for DRC.

 

### The tuple publisher and publisher classes

The function of the TuplePublisher and its associated Publisher classes
is to separate data in the incoming file row according to relevance to
particular stores and applying ETL logic to incoming rows.

The publishers that are employed, together with their descriptions, can
be found within the following table:

| Tuple Publisher Class | Publisher Class | Function |
| - | - | - |
| DefaultRiskChargeTuplePublisher | | - Creates tuples for the Security, Obligor, Tranche and RiskFactorDescription stores - Converts the ObligorCategory from the incoming field into a list of canonical values defined in FRTBConstants - Creates DRC tuples for the SASensitivities store |
