The Best Way to Manage Your Data Analytics Source Files
Seven Steps to Implementing DataOps: Step 2 — Use a Version Control System
In a previous blog we introduced DataOps, a new approach to data analytics, which can put analytics professionals in the center of the company’s strategy, advancing its most strategic and important objectives. DataOps doesn’t require you to throw away your existing tools and start from scratch. With DataOps, you can keep the tools you currently use and love. You may be surprised to learn that an analytics team can migrate to DataOps in seven simple steps. This blog entry is step 2 of 7.
There are many stages of processing that turn raw data into useful information for stakeholders. To be valuable, data must progress through these steps, linked together in some way, with the ultimate goal of producing a data-analytics output. Data may be preprocessed, cleaned, checked, transformed, combined, analyzed, modeled, and reported. Conceptually, the data-analysis pipeline is a set of stages implemented using a variety of tools including ETL tools, data science tools, self service data prep tools, reporting tools, visualization tools and more. The stages may be executed serially, but many stages can be parallelized. The pipeline is deterministic because the pipeline stages are defined by files: scripts, source code, algorithms, html, configuration files, parameter files, containers and other files. All of these items are essentially just source code. Code controls the entire data-analytics pipeline from end to end in a reproducible fashion.
The artifacts (files) that make this reproducibility possible are usually subject to continuous updates. Like other software projects, the source files associated with the data pipeline should be maintained in a version control (source control) system such as Git. A version control tool helps teams of individuals organize and manage the changes and revisions to code. It also keeps code in a known repository and facilitates disaster recovery.
Prior to the use of version control, bits and pieces of company intellectual property were strewn across various individual hard drives. When this problem got the attention of managers, a simple albeit insufficient solution would have been to keep a snapshot of all source code files in folders or directories. In a project with a lot of activity, it was common for someone to forget to save changes out to the central directory. Worse, a file could be overwritten losing the old version forever. These types of issues and conflicts multiply greatly as the team grows.
A version control system is an enterprise tool that keeps a copy of all versions of all files. If builds are drawn from the files stored within the version control system, then you can be sure you are not missing anything. Beyond that a version control system offers many other benefits:
Get DataKitchen’s stories in your inbox
Join Medium for free to get updates from this writer.
· Prevents developers from overwriting each other’s changes. A developer can check out a file, make changes to it and check it back in without disturbing anyone else. When more than one developer makes a change to the same file, there is a mechanism to merge the changes.
· Retains file version history. The ability to view versions of a file is very helpful when resolving bugs. If a problem has been introduced, you can trace through the history of a file to see which changes may have caused the problem.
· Identifies the set of files that comprise each build version.
· Tracks files associated with different stages in a delivery pipeline: development, test, production, etc.
· Allows many individuals to share code in a central repository
· Traces each change back to project management or bug tracking software
· Saves backup copies of all the versions of all files
Perhaps the most important benefit of version control relates to a process change that it facilitates. It allows data-analytics team members to branch and merge. We’ll cover branching and merging in our next blog.
Like this story? Download the 140 page DataOps Cookbook!











