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
Copy file name to clipboardExpand all lines: Community-Supported/clouddb-extractor/README.md
+55-6Lines changed: 55 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ __Current Version__: 1.0
7
7
8
8
Cloud Database Extractor Utility - This sample shows how to extract data from a cloud database to a published hyper extract and append/update/delete rows to keep up to date.
9
9
10
+
A detailed article about this utility is availabe at: https://www.tableau.com/developer/learning/how-synchronize-your-cloud-data-tableau-extracts-scale
11
+
10
12
# Overview
11
13
This package defines a standard Extractor Interface which is extended by specific implementations
12
14
to support specific cloud databases. For most use cases you will probably only ever call the
__Update:__ Execute updated_rows.sql to retrieve a changeset and update test_datasource where primary key columns in changeset (METRIC_ID and METRIC_DATE) match corresponding columns in target datasource:
94
+
```console
95
+
# updated_rows.sql:
96
+
SELECT * FROM source_table WHERE LOAD_TIMESTAMP<UPDATE_TIMESTAMP
__Delete:__ Execute deleted_rows.sql to retrieve a changeset containing the primary key columns that identify which rows have been deleted. a list of deleted rows. Delete full_extract where METRIC_ID and METRIC_DATE in changeset match corresponding columns in target datasource:
104
+
```console
105
+
# deleted_rows.sql:
106
+
SELECT METRIC_ID, METRIC_DATE FROM source_table_deleted_rows
__Conditional Delete:__ In this example no changeset is provided - records to be deleted are identified using the conditions specified in delete_conditions.json
0 commit comments