You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[stg_*](https://github.com/fivetran/dbt_sap/tree/main/models/staging)(all staging models: 72)| Materialization | Table | View | These staging models are now views. Upon full refresh, the package should automatically drop the tables and recreate them as views. However, we recommend reviewing your schema and manually dropping any remaining staging models materialized as tables as they will no longer be updated in favor of the materialized views.|
10
+
|[int_*](https://github.com/fivetran/dbt_sap/tree/main/models/sales_and_procurement/star_schema/intermediate) (all sales and procurement intermediate models: 22) | Materialization | Table | Ephemeral | These intermediate models are now views. We therefore recommend manually dropping all sap data model sales and procurement intermediate tables as they will no longer be updated in favor of the materialized views.|
11
+
12
+
## dbt Fusion Compatibility Updates
13
+
- Updated package to maintain compatibility with dbt-core versions both before and after v1.10.6, which introduced a breaking change to multi-argument test syntax (e.g., `unique_combination_of_columns`).
14
+
- Temporarily removed unsupported tests to avoid errors and ensure smoother upgrades across different dbt-core versions. These tests will be reintroduced once a safe migration path is available.
15
+
- Removed all `dbt_utils.unique_combination_of_columns` tests.
16
+
- Moved `loaded_at_field: _fivetran_synced` under the `config:` block in `src_sap.yml`
17
+
1
18
# dbt_sap v0.2.1
2
19
[PR #28](https://github.com/fivetran/dbt_sap/pull/28) includes the following updates:
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
- Brings in general ledger models like General Ledger: Balances, Leading Ledger (`sap__0fi_gl_10`) and Line Items Leading Ledger (`sap__0fi_gl_14`).
22
22
- Brings in master text models like Company Code (`sap__0comp_code_text`), Company (`sap__0company_text`), and Vendor (`sap__0vendor_text`).
23
23
- Provides sales and procurement models including facts and dimensions for purchase and sales orders.
24
-
- Produces modeled tables that leverage SAP data from [Fivetran's SAP connectors, like LDP SAP Netweaver](https://fivetran.com/docs/local-data-processing/requirements/source-and-target-requirements/sap-netweaver-requirements), [HVA SAP](https://fivetran.com/docs/databases/sap-erp/high-volume-agent) or [SAP ERP on HANA](https://fivetran.com/docs/databases/sap-erp/sap-erp-hana) and build off the output of our [SAP source package](https://github.com/fivetran/dbt_sap_source).
24
+
- Produces modeled tables that leverage SAP data from [Fivetran's SAP connectors, like LDP SAP Netweaver](https://fivetran.com/docs/local-data-processing/requirements/source-and-target-requirements/sap-netweaver-requirements), [HVA SAP](https://fivetran.com/docs/databases/sap-erp/high-volume-agent) or [SAP ERP on HANA](https://fivetran.com/docs/databases/sap-erp/sap-erp-hana).
25
25
- Generates a comprehensive data dictionary of your source and modeled sap data through the [dbt docs site](https://fivetran.github.io/dbt_sap/).
26
26
27
27
<!--section=“sap_transformation_model"-->
@@ -42,7 +42,6 @@ The following table provides a detailed list of all tables materialized within t
42
42
|[sap__0material_attr](https://fivetran.github.io/dbt_sap/#!/model/model.sap.sap__0material_attr)| This model is used to display material attribute information, originating from the `mara` source. |
43
43
|[sap__0vendor_attr](https://fivetran.github.io/dbt_sap/#!/model/model.sap.sap__0vendor_attr)| This model is used to display vendor attributes, originating from the `lfa1` source. |
44
44
|[sap__0vendor_text](https://fivetran.github.io/dbt_sap/#!/model/model.sap.sap__0vendor_text)| This model is used to display vendor text, originating from the `lfa1` source. |
45
-
46
45
|[sap__dim_customer](https://fivetran.github.io/dbt_sap/#!/model/model.sap.sap__dim_customer)| Represents customer dimension data from the `kna1` source to support dimensional reporting. SAP field names are mapped to English readable column names. |
47
46
|[sap__dim_material](https://fivetran.github.io/dbt_sap/#!/model/model.sap.sap__dim_material)| Provides enriched material and material type data by combining attributes from the `mara`, `makt`, `t134`, and `t134t` sources to support dimensional reporting. SAP field names are mapped to English readable column names. |
48
47
|[sap__dim_plant](https://fivetran.github.io/dbt_sap/#!/model/model.sap.sap__dim_plant)| Delivers plant-level dimension data from the `t001w` source to support dimensional reporting. SAP field names are mapped to English readable column names. |
@@ -54,7 +53,7 @@ The following table provides a detailed list of all tables materialized within t
54
53
|[sap__fact_sales_order](https://fivetran.github.io/dbt_sap/#!/model/model.sap.sap__fact_sales_order)| Contains fact-level sales order data, integrating records from `vbak`, `vbap`, `vbuk`, and `vbup` sources to provide visibility into sales transaction performance. SAP field names are mapped to English readable column names. |
55
54
56
55
### Materialized Models
57
-
Each Quickstart transformation job run materializes 46 models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`.
56
+
Each Quickstart transformation job run materializes 95 models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`.
58
57
<!--section-end-->
59
58
60
59
## How do I use the dbt package?
@@ -129,12 +128,14 @@ vars:
129
128
```
130
129
131
130
#### Change the build schema
132
-
By default, this package builds the SAP staging models within a schema titled (`<target_schema>` + `stg_sap`) and the SAP final models within a schema titled (<target_schema> + `_sap`) in your target database. If this is not where you would like your modeled sap data to be written to, add the following configuration to your root `dbt_project.yml` file:
131
+
By default, this package builds the SAP staging models within a schema titled (`<target_schema>` + `sap_source`) and the SAP final models within a schema titled (<target_schema> + `sap`) in your target database. If this is not where you would like your modeled sap data to be written to, add the following configuration to your root `dbt_project.yml` file:
133
132
134
133
```yml
135
134
models:
136
135
sap:
137
136
+schema: my_new_schema_name # leave blank for just the target_schema
137
+
staging:
138
+
+schema: my_new_schema_name # leave blank for just the target_schema
138
139
```
139
140
140
141
#### Change the source table references
@@ -143,7 +144,7 @@ If an individual source table has a different name than the package expects, add
Copy file name to clipboardExpand all lines: models/extractor_reports/extractor_reports.yml
-47Lines changed: 0 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,6 @@ version: 2
3
3
models:
4
4
- name: sap__0comp_code_attr
5
5
description: This model is used for loading company code attributes, extracting from the t001 data source.
6
-
tests:
7
-
- dbt_utils.unique_combination_of_columns:
8
-
combination_of_columns:
9
-
- mandt
10
-
- bukrs
11
6
columns:
12
7
- name: mandt
13
8
description: Client
@@ -30,11 +25,6 @@ models:
30
25
31
26
- name: sap__0comp_code_text
32
27
description: This model is used for loading company code text information, extracting from the t001 data source.
33
-
tests:
34
-
- dbt_utils.unique_combination_of_columns:
35
-
combination_of_columns:
36
-
- mandt
37
-
- bukrs
38
28
columns:
39
29
- name: mandt
40
30
description: Client
@@ -47,11 +37,6 @@ models:
47
37
48
38
- name: sap__0company_text
49
39
description: This model is used for loading customer text data, extracting from the t880 data source.
50
-
tests:
51
-
- dbt_utils.unique_combination_of_columns:
52
-
combination_of_columns:
53
-
- mandt
54
-
- rcomp
55
40
columns:
56
41
- name: mandt
57
42
description: Client
@@ -62,11 +47,6 @@ models:
62
47
63
48
- name: sap__0customer_attr
64
49
description: This model is used for loading customer master data, originating from the kna1 source.
65
-
tests:
66
-
- dbt_utils.unique_combination_of_columns:
67
-
combination_of_columns:
68
-
- mandt
69
-
- kunnr
70
50
columns:
71
51
- name: mandt
72
52
description: Client
@@ -131,12 +111,6 @@ models:
131
111
132
112
- name: sap__0employee_attr
133
113
description: This model contains information that concerns the employee's work relationship, extracting master data from the personnel administration tables.
134
-
tests:
135
-
- dbt_utils.unique_combination_of_columns:
136
-
combination_of_columns:
137
-
- pernr
138
-
- begda
139
-
- endda
140
114
columns:
141
115
- name: begda
142
116
description: Vaild from date
@@ -611,12 +585,6 @@ models:
611
585
612
586
- name: sap__0gl_account_attr
613
587
description: This model is used for loading G/L Account Number master data, originating from the ska1 source.
614
-
tests:
615
-
- dbt_utils.unique_combination_of_columns:
616
-
combination_of_columns:
617
-
- mandt
618
-
- ktopl
619
-
- saknr
620
588
columns:
621
589
- name: mandt
622
590
description: Client
@@ -655,11 +623,6 @@ models:
655
623
656
624
- name: sap__0material_attr
657
625
description: This model is used to display material attribute information, originating from the mara source.
658
-
tests:
659
-
- dbt_utils.unique_combination_of_columns:
660
-
combination_of_columns:
661
-
- mandt
662
-
- matnr
663
626
columns:
664
627
- name: mandt
665
628
description: Client
@@ -916,11 +879,6 @@ models:
916
879
917
880
- name: sap__0vendor_attr
918
881
description: This model is used to display vendor attributes, originating from the lfa1 source.
919
-
tests:
920
-
- dbt_utils.unique_combination_of_columns:
921
-
combination_of_columns:
922
-
- mandt
923
-
- lifnr
924
882
columns:
925
883
- name: mandt
926
884
description: Client
@@ -981,11 +939,6 @@ models:
981
939
982
940
- name: sap__0vendor_text
983
941
description: This model is used to display vendor text, originating from the lfa1 source.
0 commit comments