SQL validation queries, test cases, and documentation generated automatically
01The challenge
BBI was helping a leading wealth management firm bring data from more than 90 acquired organizations into a centralized Snowflake platform. The work was part of a multi-year modernization program designed to support better reporting, analytics, and AI.
The platform had approximately 400 tables spread across raw, curated, and business data layers. Testing each layer meant checking different elements—such as whether data was complete and correctly structured or whether business calculations and relationships between tables made sense.
For the QA team, much of that work was manual. Validating a single table could take one to five hours as engineers worked through mapping documents, wrote and ran SQL queries, and recorded their findings. Across hundreds of transformations, those hours added up quickly.
The goal was clear: spend less time on repetitive checks while maintaining data accuracy.
02The solution
When Snowflake Cortex AI became available in the client’s environment, the BBI team saw an opportunity to change how QA was done. We built an AI-powered QA agent that uses metadata, business requirements, and transformation logic to take on much of the test preparation and execution work.
The agent works within the client’s Snowflake environment and fits into the team’s existing QA and development workflow. It can:
The automated work takes roughly three to four minutes. Engineers then spend about 30 minutes reviewing the results, checking business logic, and taking a closer look at any complex or questionable queries before signing off. The agent speeds up the process; it does not replace human judgment.
The same approach can be used across raw, curated, and business data layers and in DEV, QA, UAT, and production environments. Consistent outputs also make it easier for the team to follow the same testing standards throughout development.
03The outcome
The biggest change was not just faster testing. The QA team could spend less time preparing routine checks and more time reviewing the results that mattered. The agent reduced manual QA effort by up to 80%, while engineers continued to approve the final outcomes.
less manual QA effort
Up to90%
Up to 90% less validation time per table, bringing work that previously took 1–5 hours down to around 30–35 minutes, including review
SQL validation queries, test cases, and documentation generated automatically
More than 2,900 test cases generated across 55+ tables
762 unique mart-layer data sets validated, saving a verified 381 hours of QA effort
Enough QA capacity freed up to move one of the five engineers into a development role
No QA-related production issues reported across the validated layers over the past 18 months