Google Cloud recently announced its acquisition of Dataform, a platform that empowers analysts to manage the entire flow of data within the warehouse, using a single, unified workflow. Incredibly powerful, Dataform is the tool used for transformation of data, reshaping, cleaning, and crunching. Since Dataform is now part of Google Cloud, it is available for free. Google is offering a product that can truly change the way that all companies, large and small, work with data, making it efficient and painless.
Where Data Teams Come Together
Traditional data ecosystems used an ETL approach – Extract, Transform, Load. In that approach, data cleansing and transformation, the ‘T’, happened as the middle step – where the compute power was available. Only the reduced dataset made it to the final warehouse for analysis.
Dataform helps data analysts independent from the data engineer. It switches the model around, promoting an ELT model – leaving the extraction and load to the data engineers, and the post-processing SQL transformation to the analysts, and all with the rigor of enterprise-level data and pipeline code management.
Modern cloud technologies and tooling, with low cost storage and MPP architectures, enable a different approach. The data engineers focus on the extraction and load into the data warehouse, while the analysts focus on the transformation afterwards. ETL becomes ELT, and the analysts’ influence and expertise is unleashed.
This is what Google Cloud, with Dataform and BigQuery, is offering for your enterprise. Dataform enables your entire data team to collaboratively develop, test, and share the data that the business needs to make decisions. Within your BigQuery data warehouse, Dataform enables analysts to manage all data processes, turning raw data into the clean datasets you need for analytics and business intelligence. And it does this with the same kind of rigor you expect of any production infrastructure development and coding process – version control, code reviews, testing, reusability, documentation, scheduling, and alerting.
Dataform – Under the Hood
Dataform has several features which help us manage our data and make our work more efficient.
- Define tables and views to be created in the desired warehouse
- Add documentation to tables and views already created
- Test the quality of data by defining assertions
- Code is reusable and can be used as multiple scripts
- Running other arbitrary SQL queries and SQL operations
- Ability to take snapshots of data
- Helps in data modeling by use of ready-made SQL packages
- Ability for version control within the platform
- Services for scheduling, alerting and logging
SQLX in Dataform
SQLX is an open source extension of SQL which is extensively used in Dataform, providing multiple advantages:
- Code cannot be reused in SQL, whereas SQLX code can be reused across different scripts, operations, and projects.
- Managing dependencies is hard in SQL and many teams write thousands of lines of queries to ensure data processing happens in a specific order. SQLX allows you to build a dependency tree of all actions to be run and ensures tables and views are created in the right order.
A Dataform project is a repository with collections of configuration files, SQLX files and, sometimes, Java Script files. The components are:
Config files: This lets you configure a Dataform project, including type of warehouse, schema, scheduling, packaging, and environments.
Definition: SQLX files that will define new tables, views, assertions and other SQL operations.
Includes: JS files if required in our projects where variables and functions are defined.
- Develop in SQLX
- Dataform compiles the project in real time
- Dataform connects to the data warehouse to run a dependency tree or a subset
- Tables are created or updated in the data warehouse
Dataform Integration with BigQuery
Dataform connects with BigQuery using a service account with appropriate permissions. The JSON key for that service account must be uploaded to Dataform.
There will be several options to log in on the Dataform site, including choices to log in through Google, Microsoft, GitHub, Okta, or an email address. Once logged in, it will ask to upload the JSON key mentioned above to get appropriate permissions. There is documentation within Dataform which provides a step-by-step detailed explanation on getting started.
If you need help or guidance on using Dataform and BigQuery as part of your larger data strategy, contact our experts to set up a time to talk.
Get the latest industry news and insights delivered straight to your inbox.