Chapter (Glue-2208) Replication to files explained which files are written to file-based storage:
...
You can edit the naming convention with SNP Glue™ Profile Settings.
Within this chapter, we’ll explain how to use the provided metadata to recognize delta’s and do proper merges (for example in spark-based applications like Databricks).
...
The property "LoadType" is a single character that identifies you with the extraction load type:
“I” - Delta Init Without Data
“L” - Delta Init + Full Load
“D” - Delta Load
“F” - Full Load (Repair) Without Delta Update
“R“ - Recovery of Previous Deltas - https://datavard.atlassian.net/l/c/X1UGkpNh (Glue-2208) ODP Fetcher only
More details you can find here https://datavard.atlassian.net/l/c/7FUaNembData Replication with delta
Request metadata - DeltaType
...
Objects | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SAP Object | SAP Table | Table View / Hana View | CDS View | Extractor | BW Object | DSO | aDSO | BEx Query | |||||||
SNP Glue™ Fetcher | SAP Table Fetcher | SAP Table Fetcher Hana View Fetcher | SAP Table Fetcher ODP Fetcher | ODP Fetcher | Listcube Fetcher ODP Fetcher | ODP Fetcher DSO Fetcher | ODP Fetcher aDSO Fetcher | BEx Query Fetcher | |||||||
DeltaType | Indication field (type) | Load type | Insert | Update | Delete | Deduplication | Comment | ||||||||
FULL | X | X | X | X | X | X | X | X | F | no | Full load - no delta | ||||
TRIGGER | X | /DVD/GL_DELFLAG | D, F, I, L | ““ | ““ | D | yes | Delta is captured by database triggers and stored in a shadow table (keys only). During a delta replication, the shadow table will be deduplicated (latest entries) and joined to the source table to get the data itself. https://datavard.atlassian.net/l/c/HV9UoPXX https://datavard.atlassian.net/l/c/mnhf3fwV Data Replication with delta (Glue-2208) Capturing of deleted entries | |||||||
VALUE | X | X | X | X | D, F, I, L | no | Delta is captured by field values like a creation or change date or an increasing key number - https://datavard.atlassian.net/l/c/xiyji801 (Glue-2208) Delta Mechanisms . So based on the field you choose you can capture creates and/or changes. Deletes can only be recognized if the table itself has a delete column. Hard deletes on the database level can’t be captured by this method. | ||||||||
VALUE_DIST | X | X | X | D, F, I, L | |||||||||||
DATE | X | X | X | X | D, F, I, L | ||||||||||
TMSTMP | X | X | X | X | D, F, I, L | ||||||||||
CHANGELOG | X | RODMUPDMOD | D, F, I, L | N | ““ | D | optional - (Glue-2208) DSO Fetcher | Recordmodes can be selected in the https://datavard.atlassian.net/l/c/8ZtgHTeL. (Glue-2208) Advanced DSO Fetcher . Refer to the table below. | |||||||
REQUEST | X | RODMUPDMOD | D, F, I, L | N | ““ | D | |||||||||
SLT | /DVD/GL_DELFLAG | I | U | D | optional | A = Archive | |||||||||
ODP_DELTA | X | X | X | X | X | ODQ_CHANGEMODE | D, F, I, L, R | C | U | D | ODQ_CHANGEMODE and ODQ_ENTITYCNTR are available. Refer to the table below. |
...
...
ODQ Changemode and BW Recordmode Overview from SAP
Doing the merge
Combining the information from above a merge could be done like this (pseudocode):
...