From e3658e70702345a79902831821f97c9d89e09822 Mon Sep 17 00:00:00 2001 From: Priya Poojari <priya.poojari@niveussolutions.com> Date: Mon, 17 Feb 2025 06:51:03 +0000 Subject: [PATCH] Initial commit --- .gitignore | 1 + definitions/first_view.sqlx | 16 ++++++++++++++++ definitions/second_view.sqlx | 6 ++++++ workflow_settings.yaml | 5 +++++ 4 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 definitions/first_view.sqlx create mode 100644 definitions/second_view.sqlx create mode 100644 workflow_settings.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c2658d7 --- /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 0000000..f53a5f6 --- /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 0000000..9a47795 --- /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 0000000..e09410c --- /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 -- GitLab