DataFlow¶
DQX Logging and DQX¶
In CLOE we want to allow the greatest possible flexibility. Therefore DataQuality can be switched on or off. The same is true for logging.
Logging and error correction can be controlled down to column level. The following procedure has to be observed for a clean modeling:
- the corresponding "include_dqX" flag must always be set first. Otherwise all functions are deactivated.
- set the corresponding LogDQX flag to enable logging.
Prerequisites for error-free operation:
For Include_DQ2:
- perform a conversion with ConvertToDatatype on at least one column(ColumnMapping).
For LogDQ2:
- at least for one column(ColumnMapping) set logging with IsLoggingOnConvertError flag to log corresponding errors.
For LogDQ3
- on at least one column(LookupReturnColumnMappings) set logging with the IsLoggingOnLookupError flag to log corresponding errors.
Important Note: At least one column must always be selected! Otherwise errors will occur later.
Set the BK in CLOE¶
CLOE expects in each core column a column with the name "BK". This must contain the BK accordingly. No composite keys are possible.
The BK of the source tables can be a composite key and is composed of the BK defined in ColumnMapping in BK_Order columns.
How do I store columns that are only lookup parameters?¶
All columns must appear in the ColumnMapping. It is not currently intended to use columns only in the lookup.
The correct procedure is to store the columns in ColumnMapping and set IsUpdate+IsInsert to False.
What options do I have with IsAddTenantToLookupParameter?¶
IsAddTenantToLookupParameter controls the tenant in the lookup BK. Lookup IsAddTenantToLookupParameter has three values:
| Possible values | |
|---|---|
Lookup - How do I get my lookup key into my DWH/Core target table?¶
CLOE automatically creates a mapping with the source lookup BK(defined in LookupLookupParameter) and as target FK_LOOKUPNAME_BK in addition to the mappings defined in LookupReturnColumnMapping.
Example:
Here, in addition to the FK_Budgetagreement_ID, an FK_Budgetagreement_BK would be filled with BudgetAgreementNo from the source table.
How can I build lookup chains / How can I use the return value of a lookup for another lookup?¶
This is currently not possible in CLOE. Postprocessing must be used for this.
The recommended way is to build a view that already does the necessary joins so that the information can be retrieved with a lookup.
How do I use a column for the BK without writing it to a target column in Core/DWH?¶
Simply leave the TargetColumnName empty and only populate the BK_Order.
Example:
How do I determine the length or type of data types in the ConvertToDatatype?¶
Simply create the appropriate type in common_conversion.json e.g. nvarchar255 and create the DQ2 or the Convert Template accordingly (e.g. TRY_CONVERT(NVARCHAR(255), {{ column_name }})).