Googleapi
December 1, 2026·Source

BigQuery AI.AGG (Generally Available)

BigQuery's AI.AGG function, which summarizes groups of rows with Gemini, is now generally available and can return structured fields instead of a paragraph. For people who write SQL in BigQuery.

  • A new output_schema setting lets you define the fields to return, such as text, numbers, true/false values, lists, and nested records.
  • Each group's response is capped at 10,000 tokens, so Google suggests asking for a fixed number of items, like the top 5 causes.
  • The post also links to new token-based cost controls for generative AI in BigQuery, with limits per project and per user.
  • Runs on Gemini models. It was in preview before this.

Best for

Turning large tables of text, such as logs, reviews, or notes, into per-group summaries you can filter and chart

When to use it

You want typed fields for each group instead of one block of free text

Who benefits

Analysts and data teams working in BigQuery

Join the newsletter to get ahead with AI.

I share strategies, new modules, free guides, and tools to get you better at using AI in your work.

Leading a team? See team programs →