BigQuery AI.AGG() function reaches general availability with structured output support
Google has announced general availability of BigQuery's AI.AGG() function, which uses Gemini models to aggregate unstructured data in SQL, together with a new output_schema parameter. Data teams using BigQuery for pipelines, joins or dashboards are concerned.
What to do now
Google Cloud says the AI.AGG() function in BigQuery, previously offered in Preview, has reached general availability. The function brings SQL aggregation to unstructured text and multimodal data using Gemini models. Users supply a natural language instruction, and the function synthesises thousands or even millions of rows per group in a query, without a custom application pipeline and, according to Google, without running into model context window limits.
During Preview, AI.AGG() returned a single paragraph of summary text for each group. That suits an analyst reading results in the console but not automated processing. The GA release adds an output_schema parameter: the user defines the structure they want, and BigQuery formats the model's response to match it, returning text, numeric, boolean or list fields that can be filtered, unnested, joined or charted immediately.
Google cites use cases such as distilling product feedback, investigating application logs and automatically deduplicating bug reports or tickets. The vendor pairs the GA release with new token-based cost management controls in BigQuery, meant to make the cost of these workloads more predictable in production. The source does not describe how those controls work, nor give pricing or the exact date the function became GA.
For people running data platforms, two things change: the function now carries general availability status, and every AI.AGG() query calls a Gemini model across large numbers of rows, which affects consumption and determines what data is sent to the model. The source does not state supported regions, quotas or which Gemini models are available.
What to do now
- Inventory queries and pipelines already using AI.AGG() from the Preview and assess moving automated workloads to the output_schema parameter.
- Review BigQuery's new token-based cost controls in Google's documentation and configure them before production use.
- As general good practice, check which unstructured tables may be sent to Gemini models under your data handling policies.