diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..c2658d7d1b31848c3b71960543cb0368e56cd4c7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/ diff --git a/definitions/first_view.sqlx b/definitions/first_view.sqlx new file mode 100644 index 0000000000000000000000000000000000000000..f53a5f648901c1052313f291da01a92ec9f2742d --- /dev/null +++ b/definitions/first_view.sqlx @@ -0,0 +1,16 @@ +-- This is an example SQLX file to help you learn the basics of Dataform. +-- Visit https://cloud.google.com/dataform/docs/sql-workflows for more information on how to configure your SQL workflow. + +-- You can delete this file, then commit and push your changes to your repository when you are ready. + +-- Config blocks allow you to configure, document, and test your data assets. +config { + type: "view", // Creates a view in BigQuery. Try changing to "table" instead. + columns: { + test: "A description for the test column", // Column descriptions are pushed to BigQuery. + } +} + +-- The rest of a SQLX file contains your SELECT statement used to create the table. + +SELECT 1 as test diff --git a/definitions/second_view.sqlx b/definitions/second_view.sqlx new file mode 100644 index 0000000000000000000000000000000000000000..9a4779595c9d80ab9c22c5427ba0b81344ad6cbe --- /dev/null +++ b/definitions/second_view.sqlx @@ -0,0 +1,6 @@ +config { type: "view" } + +-- Use the ref() function to manage dependencies. +-- Learn more about ref() and other built in functions here: https://cloud.google.com/dataform/docs/dataform-core + +SELECT test from ${ref("first_view")} diff --git a/workflow_settings.yaml b/workflow_settings.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e09410c2b83b91d84557fd0de2fa9d877e943840 --- /dev/null +++ b/workflow_settings.yaml @@ -0,0 +1,5 @@ +defaultProject: maximal-chemist-355505 +defaultLocation: asia-south1 +defaultDataset: dataform +defaultAssertionDataset: dataform_assertions +dataformCoreVersion: 3.0.0