TODO
Source Area Generate Table
Section titled “Source Area Generate Table”Purpose
Section titled “Purpose”This code-generation template creates table creation scripts for Snowflake based on source conventions.
Motivation
Section titled “Motivation”After importing data definitions from operational systems, a typical next step is generating source objects to load the data delta into. This template creates these tables.
Applicability
Section titled “Applicability”- Snowflake
Design Pattern
Section titled “Design Pattern”Schema Type
Section titled “Schema Type”Output Type
Section titled “Output Type”Implementation guidelines
Section titled “Implementation guidelines”This template can be assigned to ‘source’ Data Objects. It will add the defined data solution standard columns and streamline the data types.
Considerations and consequences
Section titled “Considerations and consequences”N/A.
Extensions
Section titled “Extensions”N/A.
---- Source table creation statement for {{./conventions.sourceObjectLocation}}.{{name}}.---- Generated from template '{{templateMetadata.name}}'.--
DROP TABLE IF EXISTS "{{./conventions.sourceObjectLocation}}.{{name}}";
CREATE TABLE "{{./conventions.sourceObjectLocation}}.{{name}}"({{#each dataItems}} "{{name}}" {{dataType}}{{#unless @last}},{{/unless}}{{/each}});