Skip to content

Commit

Permalink
Merge pull request #13 from onaio/ale_utils
Browse files Browse the repository at this point in the history
model clean up
  • Loading branch information
alepietrobon authored May 8, 2023
2 parents 116d4d2 + cf7d57c commit b6c9e7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions models/onadata_connector/onadata_from_airbyte.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{#-- create a table name using the right configurations -- #}
-- 2023.05.08 AP. Work in progress model to help the creation of connector tables. Might Be changed later

select 1

{#
-- create a table name using the right configurations --
{{ config(alias= var('connector_table_name') )}}

{#-- create a new table normalizing "airbyte_raw" JSON data into a specific table --#}
{#-- table name should be overridden when the model is called, by setting the 'vars' project variables --#}
{{normalize_onadata_form(schema_name = var('connector_schema_name'), form_name = '_airbyte_raw_' + var('connector_table_name') )}}
-- create a new table normalizing "airbyte_raw" JSON data into a specific table --
-- table name should be overridden when the model is called, by setting the 'vars' project variables --
{{normalize_onadata_form(schema_name = var('connector_schema_name'), form_name = '_airbyte_raw_' + var('connector_table_name') )}}

#}
2 changes: 1 addition & 1 deletion packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: dbt-labs/dbt_utils
version: 0.9.6
version: 1.0.0

0 comments on commit b6c9e7a

Please sign in to comment.