Case study
SAS → BigQuery preparation pilot
The problem. Prepare legacy analytical processes for change without losing their business meaning.
My role. I assessed SAS processes, defined the preparation method and validation criteria, and reviewed selected outputs and reconciliations.
Approach. Map sources, targets and actual dependencies.
Context
Business rules were embedded in legacy processes and their dependencies. Preparation had to account for filters, joins, macros, dates and aggregation grain before assessing candidate SQL.
Approach
- Map sources, targets and actual dependencies.
- Record execution order, mappings and risks in a structural contract.
- Prepare candidate SQL and review schema and semantic behavior.
- Compare equivalent populations and periods for selected processes; investigate differences before a process-level decision.
What this work produced
The pilot produced structural contracts, candidate translations and reconciliation records for a subset of processes. It remained preparation and selected-process review within a wider modernization program.
Technical detail
Python tooling extracts and organizes legacy structure. SAS and BigQuery SQL require semantic review as well as compatible schemas. Process owners decide formal acceptance; data engineering provides ingestion and platform dependencies, and other participants also execute migrations.
Engineering considerations
Discovering dependencies adds preparation work. Comparing equivalent outputs before redesign helps distinguish translation differences from intended business-rule changes. Consumer checks are part of the retirement criteria, not a claim that legacy processes were retired.
Illustrative example using synthetic data
Illustrative example using synthetic data. This describes a numeric filtering rule, not production code or a universal missing-value policy.
Consider an ordinary SAS numeric missing value (.) and a non-missing numeric cutoff. In the illustrated SAS comparison, reading < cutoff retains the missing value. Mapping it to NULL in BigQuery changes an ordinary comparison to NULL, so WHERE drops the row. If retaining missing values is intended, handle NULL explicitly and compare missing and non-missing populations separately.