-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Transient Staging Area (tsa) is a layer in data warehouse where data from multiple sources land at warehouse initially. The data table in this area act as an intermediate storage location to provide downstream transformation. * Made use of `spreadsheet_library_tracking_metadata` table as another data source to feed into vault layer as well as psa layer for history tracking and records archiving purpose. * Typically, tsa data tables have been pre-processed into db by Glue job setup.
- Loading branch information
Showing
6 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
SELECT current_database(); | ||
|
||
-- create tsa schema | ||
CREATE SCHEMA IF NOT EXISTS tsa AUTHORIZATION dev; | ||
SET search_path TO tsa; | ||
|
||
SELECT current_schema(); | ||
|
||
CREATE TABLE IF NOT EXISTS orcavault.tsa.spreadsheet_library_tracking_metadata | ||
( | ||
assay varchar, | ||
comments varchar, | ||
coverage varchar, | ||
experiment_id varchar, | ||
external_sample_id varchar, | ||
external_subject_id varchar, | ||
library_id varchar, | ||
override_cycles varchar, | ||
phenotype varchar, | ||
project_name varchar, | ||
project_owner varchar, | ||
qpcr_id varchar, | ||
quality varchar, | ||
run varchar, | ||
sample_id varchar, | ||
sample_name varchar, | ||
samplesheet_sample_id varchar, | ||
source varchar, | ||
subject_id varchar, | ||
truseq_index varchar, | ||
type varchar, | ||
workflow varchar, | ||
r_rna varchar, | ||
study varchar, | ||
sheet_name varchar | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
|
||
sources: | ||
- name: tsa | ||
database: orcavault | ||
schema: tsa | ||
tables: | ||
- name: spreadsheet_library_tracking_metadata |