Import schema
When i imported the schema SalesLT of the AdventureWorksLT2008R2 database in Quipu ‘something’ happened in the following tables:
Specially the tables with numbers are interesting:
- qp_schema
- qp_index
- qp_identifier
- qp_column
- qp_table
- qp_relationship
- qp_reference
Generate stage
The next step what i’ve done is generating the staging database with the option ‘Generate staging’ and when i executed this option the following changes were discovered in the tables op de metadata database:
Some changes appeared in the already inventoried tables in the Quipu metadata tables. Two extra tables are filled with data:
- qp_sql_step
- qp_mapping
Generating Datavault
The last step i’ve executed is generating the datavault model. When i generated the datavault, the following model is a representation of changed number of records in the tables.
There are no new tables used for filling new records, so this seems it concerning the dynamic metadata of generating the data vault. The following things catched my eyes:
- The SQL code is generated from templates stored in the table 'qp_sql_template'.
- There is no sql code in 'qp_sql_step' table for generating ETL/DDL for the datavault in contrast with the staging scheme. May be the code of the staging area is a mistake? Logically it would be best to generate the SQL code right from the metatables and the templates.
Gr,
Hennie
----------------------------------
Update after comments of The Los Tilos.
The above diagrams have more relationships. In the diagram below relationships are shown better.
Hi Hennie,
BeantwoordenVerwijderenThe qp_sql_step is 2x connected to qp_table (source/target).
qp_sql_step is also connected to qp_schema, this is the target schema. qp_relationship has a 1:n relation with qp_reference.
qp_relationship is also connected to qp_schema, this is the (FK) schema.
The ETL is between 2 tables so the SQL (or Kettle XML) is attached to the step.
Fir hubs this is an:m relation. A staging table can fill 1..N hubs and a hub can be filled by 1..n staging tables.
The DDL is generated via internal code. In one of the next releases it will be templated based like the ETL.
The source views are a form of ETL, so they have their own set of steps as of version 1.0.4. Previously they were internally coded.
Thank you for writing about Quipu.
Regards,
JJ
The ETL
Hi De los Tilos,
BeantwoordenVerwijderenThanx for your explanation. I've adjusted the diagram and added it to the post.
Gr,
Hennie