Skip to content
Snippets Groups Projects
Commit 7865a52e authored by Priya Poojari's avatar Priya Poojari Committed by GCP Dataform
Browse files

updates

parent e3658e70
No related branches found
No related tags found
No related merge requests found
config {
type: "table",
description: "Description of the first table.",
}
SELECT SUM(number) AS total FROM ${ref("source_table")}
\ No newline at end of file
-- 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
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")}
config {
type: "table",
description: "Description of the first table.",
}
SELECT 1 AS number
UNION ALL
SELECT 5 AS number
UNION ALL
SELECT 3 AS number
\ No newline at end of file
defaultProject: maximal-chemist-355505
defaultLocation: asia-south1
defaultDataset: dataform
defaultDataset: DFDemo
defaultAssertionDataset: dataform_assertions
dataformCoreVersion: 3.0.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment