How do you regression-test a Genie space or agent when a table or metric view changes underneath it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2026 07:43 AM
I hope this is useful for anyone running Genie spaces or agents past the demo stage. This is a question more than a recommendation, because I have not found a pattern I fully trust yet.
The situation: a Genie space or an agent sits on top of a handful of tables or a Unity Catalog metric view. Someone renames a column, changes a join key, redefines a measure, or backfills a table, and the answers shift without any error. The SQL still runs. The number is just different, or the wrong table gets picked. Nothing in the usual pipeline tests catches that, because the pipeline itself is healthy.
What I am trying to work out:
1) What do you use as the regression set? Genie spaces have benchmark questions with reference SQL, and some teams keep a separate golden set outside the space (30 to 50 questions with a reviewed answer each). Do you keep both, and where does the set live (the space, Git, a table)?
2) What counts as a pass? Exact SQL match is too strict (equivalent queries differ). Result-set equality is better but breaks when data legitimately moves. Do you compare against a pinned snapshot, a tolerance on the numbers, or an LLM judge for the explanation text?
3) What triggers the run? On every deploy of the bundle, on a schedule, or when lineage says an upstream table or metric view of the space has changed? Has anyone wired the system.access lineage tables to decide which spaces to re-test?
4) Cost and speed: how long does your set take to run, and do you run the full set or a sample on each change?
5) Who owns a failing test, the data engineer who changed the table or the person who owns the space?
If you already have this running, even a rough description of the loop would help. And if you decided it was not worth building, I would like to hear why.