top of page

Google ADK SQL Evaluation Looks Beyond Query Text

6 minutes ago
11 min read
Image from the source report. Source: cloud.google.com.

Google Cloud published an evaluation design on December 1, 2026, explaining why correct database answers can fail tests that demand matching query text. The Google ADK SQL evaluation approach separates checking an agent’s actions, comparing returned data, and judging its explanation. That distinction matters for enterprise teams whose automated tests reject useful answers or accept convincing mistakes.

The tutorial, written by AI engineer Rupjit Chakraborty, addresses natural language to SQL, or NL2SQL, which turns ordinary questions into database queries. ADK, Google’s Agent Development Kit, provides a framework for building agents that choose tools and perform tasks. The proposal concerns how those agents should earn trust, rather than announcing a new framework release.

The central contest is between matching a reference answer’s surface appearance and checking whether an agent actually answered the business question. Snowflake’s Cortex Analyst also evaluates generated queries through their results, providing a useful industry comparison. For developers and enterprise buyers, the harder question follows immediately: what evidence makes a passing result meaningful?

Google ADK SQL Evaluation Separates Different Questions

Google’s SQL evaluation design combines tool checks, normalized result comparisons, and model judging. It accommodates aliases, reordered outputs, numeric representations, and optional context columns. These are evaluation recommendations, without an independently established accuracy improvement.

The consequential change is separating evidence about process, data, and explanation instead of treating them as interchangeable.

An agent can follow the expected process and still select the wrong information. It can retrieve the right information and describe it incorrectly. It can also produce an acceptable answer through a different sequence of legitimate actions.

Those possibilities create different debugging problems. A missing database call points toward orchestration, meaning the logic that coordinates an agent’s actions. An incorrect result points toward query construction or interpretation. An unsupported explanation points toward the step that turns retrieved data into prose.

Collapsing these problems into a single score makes the score easier to display but harder to act on. A release team needs to know which failure occurred. Otherwise, improving the reported average can leave the underlying business risk untouched.

Consider an illustrative sales assistant asked to identify customers whose purchases declined. A correct query might return the relevant accounts, while the final response incorrectly describes their purchases as increasing. Checking only the database output would miss the communication failure.

The opposite error is equally instructive. A fluent explanation might accurately summarize a table that measures the wrong period. The words remain faithful to the returned data, yet the overall answer still fails the user’s request.

This distinction changes what an enterprise buyer should request during evaluation. A vendor’s overall success rate says little without the underlying acceptance rules. Buyers need to understand whether success means appropriate tool use, correct records, faithful communication, or a combination.

The practical implication is a more specific evidence requirement. Each layer should establish a claim that another layer cannot establish alone. That makes failures more informative and makes a passing result easier to interpret.

ADK’s custom metrics documentation provides a mechanism for adding application-specific checks. Developers can supply evaluation functions that return structured results. The framework therefore supplies an extension point; teams still determine what their domain considers correct.

That division of responsibility is the real enterprise issue. A framework can organize an evaluation without supplying the business definition behind every test. The company deploying the agent remains responsible for deciding which differences matter.

Enterprise Teams Must Define What Counts as Correct

A more flexible evaluator transfers responsibility from reference wording to explicit business requirements.

Literal matching offers an appealing shortcut. A team stores an expected query or response, then compares future outputs against it. The expected artifact becomes a convenient substitute for a detailed description of acceptable behavior.

That shortcut becomes uncomfortable when several answers satisfy the same request. Rejecting every variation creates maintenance work and misleading failures. Accepting variations without defining their boundaries creates a different problem: nobody knows exactly what a passing test guarantees.

The pressure therefore falls on people beyond the agent developer. Data owners must define the intended measures. Analysts must review reference answers. Product managers must decide whether extra information helps users or changes the task.

Take an illustrative question about active customers. The engineering team might interpret activity as a recent purchase. A customer success team might use an active contract. A finance team might require recognized revenue within the reporting period.

An evaluator cannot resolve that disagreement through better formatting rules. Each interpretation can produce internally consistent records. The conflict concerns the organization’s definition, which must exist before a test can distinguish correct reasoning from a plausible alternative.

This is why the shift matters for enterprise adoption. Once an assistant answers questions on behalf of an organization, its evaluation inherits the organization’s unresolved terminology. A natural interface makes that ambiguity easy to overlook.

A dashboard typically exposes fixed measures and filters. A conversational agent invites users to express questions in their own words. That flexibility expands the set of interpretations that testing must address.

The immediate response should be clearer acceptance criteria, meaning documented conditions an answer must satisfy. These criteria should identify the requested measure, population, period, and permitted assumptions. They should also explain when clarification is the correct response.

Clarification deserves particular attention because it can look like failure under a simplistic answer-matching test. If a question leaves the reporting period unspecified, asking a follow-up might protect the user. Automatically producing a number might simply hide an assumption.

Evaluation records also become organizational knowledge. Teams need to preserve why a definition changed and which earlier failures motivated a new test. A searchable knowledge base can help keep those decisions accessible alongside technical documentation.

The short-term burden is additional review work. The longer-term benefit is a test suite whose failures correspond more closely to user expectations. Neither benefit follows automatically from adding a custom metric.

Google ADK SQL evaluation makes that responsibility harder to avoid. Once superficial differences stop dominating failures, teams must confront the deeper question they previously obscured: what answer did the business actually authorize?

Matching Results Provides Better Evidence Than Matching Words

Google ADK evaluation explained through its documented criteria reveals why choosing a metric matters. A metric is a defined rule for assigning an evaluation score. Different rules answer different questions, even when their outputs share the same numerical scale.

Google’s evaluation criteria distinguish tool-trajectory matching from response similarity and rubric-based judging. A trajectory records the tools an agent called. The response similarity criterion uses ROUGE-1, a measure of overlap between individual words.

Word overlap provides evidence about phrasing. It does not directly establish that an answer contains the requested records or applies the intended business definition. A response can reuse familiar language while changing a crucial conclusion.

Execution results bring evaluation closer to the user’s task, provided the comparison preserves the relationships that make the answer meaningful.

Consider a hypothetical inventory assistant returning product names alongside warehouse locations. An evaluator that independently checks the collection of names and locations could overlook incorrect pairings. Every expected value might appear while the actual associations remain wrong.

This illustrates the difference between finding familiar ingredients and verifying the assembled answer. The record matters because it connects attributes. An evaluator must preserve those connections when deciding that differently arranged outputs carry the same information.

Duplicate records create another useful thought experiment. If the user asks which accounts qualify, repeated accounts might be harmless presentation noise. If the user asks how many transactions occurred, repeated rows can change the answer.

The correct policy depends on the question. Treating every result as a collection of unique values would silently discard information in the transaction example. Treating every repetition as unacceptable would reject other outputs unnecessarily.

Similar reasoning applies to presentation. A readable label can improve a business user’s understanding without changing the underlying measure. But an attractive label can also conceal a measure that the query never calculated.

An evaluator therefore needs a defensible distinction between presentation choices and substantive changes. That distinction should come from the task’s requirements. It should not depend on whether an output looks cleaner than the reference.

The industry comparison supports this focus on returned data. Snowflake’s Cortex Analyst evaluations execute generated SQL and compare results with verified queries, which pair questions with expected queries. Its documentation also describes regression tracking and latency measurement.

That is useful context, rather than evidence that either platform wins. Google’s custom evaluation route and Snowflake’s documented workflow occupy different implementation settings. Their shared emphasis suggests that query resemblance alone leaves an important gap.

Google ADK vs Snowflake is consequently a less useful framing than the underlying evaluation choice. Enterprise teams need evidence that reflects their workload. A brand comparison cannot establish whether a particular organization’s reference questions represent its actual reporting needs.

The purchasing implication follows directly. Ask what the score measures before comparing scores across systems. Similar-looking percentages can summarize fundamentally different tests.

A Passing Database Snapshot Does Not Prove Query Equivalence

Matching answers on selected data does not establish that different queries will agree on every relevant database state.

This is the most important boundary around Google ADK SQL evaluation. Query equivalence means that queries produce the same answers across the relevant conditions. Agreement on a particular dataset is narrower evidence.

An illustrative reporting example makes the distinction concrete. Suppose a test database contains only completed orders. A query that filters for completed orders and a query that ignores status can return identical results.

Add canceled orders, and the difference becomes visible. The earlier passing result did not become dishonest. It simply answered a smaller question than a production readiness claim would imply.

Research by Ruiqi Zhong, Tao Yu, and Dan Klein provides a historical reference. Their test suite research examines semantic evaluation, meaning assessment of query meaning, through execution across selected databases. It frames test suite accuracy as an approximation of semantic accuracy.

That research is not an independent assessment of Google’s December tutorial. It supports a narrower observation: the choice of test data affects what execution-based evaluation can reveal. A convincing test must create opportunities for wrong interpretations to diverge.

For an enterprise team, this changes the status of the dataset itself. Test data becomes part of the argument for reliability. A collection that resembles production superficially can still omit the situations that distinguish correct behavior from convenient shortcuts.

Empty results deserve particular skepticism. An empty answer can reflect a correct filter, an incorrect filter, or a missing relationship between tables. Agreement between empty outputs provides limited evidence unless other cases expose those distinctions.

Business boundaries create similar challenges. A reporting question near a period transition tests assumptions that an ordinary mid-period example might never exercise. A customer with changing status tests different logic from a customer whose status never changes.

These are analytical examples, rather than reported failures in Google’s implementation. Their purpose is to show why an evaluation design requires pressure testing. They do not establish that the proposed evaluator mishandles any particular case.

Reference answers require scrutiny as well. If an approved query contains a business misunderstanding, faithfully reproducing its results rewards that misunderstanding. Comparing against a reference transfers trust to the reference; it does not eliminate the need for trust.

This is where independent review adds value. A domain expert can examine the business interpretation while an engineer checks execution behavior. Agreement between those reviews provides different evidence from another automated comparison against the same reference.

The relevant limitation is therefore more precise than saying that testing is imperfect. A result comparison establishes agreement under specified conditions. Broader claims require broader conditions, documented assumptions, and evidence that known mistakes actually fail.

Flexible Scoring Needs Firm Boundaries

An evaluator should tolerate harmless variation while remaining strict about the requirements that protect the user.

That sounds straightforward until flexibility becomes a collection of exceptions. Every accepted difference changes the meaning of a passing result. Teams should be able to explain each exception in terms of the task.

Additional information offers an illustrative case. A user requesting account names might appreciate account owners. Another workflow might require a restricted export containing only approved fields.

The same extra column can be useful in the first setting and unacceptable in the second. A general preference for helpfulness cannot settle the issue. The governing requirement must identify what the agent is permitted to return.

Numerical handling raises a related question. Equivalent representations should not trigger a failure merely because they display differently. But tolerance must not erase differences that matter to the application.

Imagine an identifier that contains digits but functions as a label. Treating it as an ordinary number can remove information encoded in its representation. The relevant question is what the field means, rather than what characters it contains.

These examples reveal a tradeoff within the result-matching approach. Flexibility reduces irrelevant failures, but overly broad flexibility can hide genuine mistakes. A successful evaluation policy needs documented reasons for both acceptance and rejection.

Model judging introduces another boundary. A model judge is a language model asked to assess an output against instructions. A rubric supplies the explicit standards guiding that assessment.

Google ADK’s documented rubric criteria allow teams to evaluate response quality beyond word overlap. That creates room to assess whether explanations satisfy stated requirements. It also means the judging instructions become part of the evaluation system.

For example, a judge asked only whether a response sounds clear might approve an unsupported explanation. A judge asked whether each claim follows from supplied records faces a more relevant task. Neither instruction should receive automatic trust without reviewed examples.

The distinction between deterministic and model-based checks also matters operationally. Deterministic checks apply fixed rules to their inputs. They can produce repeatable verdicts without making every aspect of the wider agent system repeatable.

The proposed deterministic comparison avoids model-token usage at that layer. That does not make the entire evaluation free of model usage or operational expense. Agent execution, database work, and model-based judging remain separate considerations.

A buyer should consequently resist the temptation to reduce the design to a cheaper replacement for all evaluation. Its stronger promise is better allocation of checks. Use fixed rules where the requirement is precise, and investigate judgment where interpretation remains necessary.

Google ADK evaluation explained this way becomes an accountability question. Which component approved the answer, which evidence did it inspect, and which requirements remained outside its scope?

Those questions make evaluation reports more demanding to produce. They also make the reports more useful when a real incident forces a team to explain why testing passed.

The Next Evidence Should Come From Harder Tests

The next meaningful signal is stronger validation evidence, rather than a more flattering aggregate score.

Over the coming months, the first signal worth watching is whether implementations publish challenging cases alongside their passing examples. These should include deliberate mistakes that resemble acceptable outputs closely enough to test the evaluator itself.

A deliberate mistake might preserve the expected wording while changing the selected population. Another might preserve individual values while breaking their associations. The important evidence is that the evaluation rejects the mistake for an intelligible reason.

Published failures would strengthen confidence in the design by exposing its boundaries. Examples limited to harmless formatting differences would support a narrower conclusion. They would show flexibility without establishing sensitivity to substantive errors.

The second signal is reproducibility across controlled runs. Reproducibility means that others can repeat a procedure and understand why results agree or differ. Teams need enough information to separate agent variation from evaluation changes and data changes.

This does not require identical agent behavior on every attempt. It requires a record of what changed between attempts. Without that record, an apparent improvement can reflect a different workload or acceptance rule.

A credible report would preserve the questions, reference definitions, relevant data conditions, and evaluator configuration. It would identify which failures concern process, returned data, or explanation. That separation would make the reported outcome easier to audit.

The third signal is evidence from changes resembling normal enterprise operations. A business definition gets revised. A dataset gains an unusual record. A user asks an ambiguous follow-up that the original demonstration never anticipated.

Testing those transitions would strengthen the case that the approach supports maintenance rather than only initial development. Persistent unexplained failures would weaken broader production claims, even if the original examples continued to pass.

Google ADK vs Snowflake remains a secondary question until those workload details are visible. A controlled comparison would need consistent questions, equivalent access conditions, and comparable definitions of success. Otherwise, platform branding risks overshadowing differences in the tests.

For developers, the immediate consequence is a more useful release discussion. Instead of asking whether the agent’s score increased, ask which known failure became detectable. Then ask whether the evaluation still accepts legitimate alternative answers.

For enterprise buyers, request a demonstration built around an ambiguous question and an intentionally wrong answer. Watch whether the team explains the assumptions, identifies the failure, and traces the verdict to evidence.

Before your next release review, choose a business question whose answer matters and inspect the entire evidence chain. Confirm the intended definition, examine the returned records, and compare the explanation with those records. Ask the team to introduce a plausible mistake and show why it fails. Preserve the rationale so future reviewers can understand the decision. Google ADK SQL evaluation offers a useful direction for that discussion, but the acceptance rules remain yours to defend. Start with the question your organization cannot afford to misunderstand, then demand a passing result that explains exactly what it establishes.

Get your work moving in remio

See what needs your attention and take the next step in Workspace.

remio currently supports Windows 10+ (x64) and Macs with Apple silicon.

Your AI Partner at Work
Get more done with remio

Plan. Create. Deliver.
All in one place.

bottom of page