Live
Binding Cloudflare Workers to Specific VPCs per ConfigurationAgentic Regression Testing with Cached Playwright Replays: Implications for CI PipelinesBigQuery queries Databricks Iceberg tables through the borderless LakehouseCopilot harness public preview reshapes managed agent orchestrationPlatform‑Level Identity and Reach Controls Anchor Agent BoundariesManaging Regulated Workloads on AWS Elastic Beanstalk: From Fast Deploys to Long‑Term ComplianceAutomating PHP‑to‑Java Migration with Kiro and AWS TransformBuilding Intent‑Driven UI Testing on AWS with Nova Act and Bedrock AgentCore BrowserBinding Cloudflare Workers to Specific VPCs per ConfigurationAgentic Regression Testing with Cached Playwright Replays: Implications for CI PipelinesBigQuery queries Databricks Iceberg tables through the borderless LakehouseCopilot harness public preview reshapes managed agent orchestrationPlatform‑Level Identity and Reach Controls Anchor Agent BoundariesManaging Regulated Workloads on AWS Elastic Beanstalk: From Fast Deploys to Long‑Term ComplianceAutomating PHP‑to‑Java Migration with Kiro and AWS TransformBuilding Intent‑Driven UI Testing on AWS with Nova Act and Bedrock AgentCore Browser
Google Cloud

BigQuery adds augmented‑analytics TVFs for in‑place AI‑driven insight

AI SummaryPowered by AI

BigQuery introduced a set of table‑valued functions that embed AI/ML analytics directly in SQL, enabling in‑place diagnostic and causal analysis. This reduces data movement, simplifies pipelines, and opens a path for AI‑agent integration, which matters to engineers across AI, cloud, DevOps, and security domains.

BigQuery has added a suite of table‑valued functions (TVFs) that embed AI‑driven analytics directly into SQL queries. By keeping the computation where the data lives, these functions let engineers diagnose metric shifts, assess causal impact, explore correlations, detect change points, and extract underlying trends without exporting data to external tools.

What Changed: Augmented‑Analytics TVFs

The new TVFs are exposed under two namespaces:

  • AI.KEY_DRIVERS – surfaces the top contributors to a metric change between two periods or groups.
  • AI.CAUSAL_EFFECT – estimates the lift attributable to a specific action versus a baseline.
  • ML.CORRELATION – returns direction and strength of pairwise numeric relationships.
  • ML.DETECT_CHANGE_POINTS – pinpoints dates or intervals where a metric deviates from surrounding patterns.
  • ML.TREND – separates long‑term growth or decline from short‑term noise.

Each function returns a structured result set that can be consumed by downstream SQL, dashboards, or AI agents.

Why It Matters for Engineers

AI engineers gain ready‑made primitives for insight discovery, allowing rapid prototyping of data‑driven prompts or agent skills. Cloud and platform engineers can keep heavy analytical workloads inside BigQuery, avoiding costly data egress and simplifying pipeline architecture. DevOps and SRE teams see fewer moving parts: no separate ETL jobs for exploratory analysis, which reduces operational overhead and potential failure points. Security engineers benefit from reduced data movement, but must review the IAM permissions required to invoke each TVF and ensure that only authorized principals can request potentially sensitive insight functions.

Architectural and Operational Implications

Because the TVFs execute in‑place, existing BigQuery projects can call them with standard SELECT statements. Practitioners should consider:

  • Granting the bigquery.tables.getData and bigquery.jobs.create permissions to the service accounts that will run the functions.
  • Monitoring query cost, as each TVF adds compute cycles proportional to the data scanned.
  • Integrating the structured outputs into downstream orchestration tools (e.g., Airflow, Cloud Composer) or conversational agents that expect tabular data.
  • Validating that the TVF inputs (metric columns, time windows) are correctly typed to avoid runtime errors.

From an operational standpoint, the functions are versioned as part of BigQuery; no separate deployment is required, but teams should track any future deprecation notices from Google Cloud.

What to Watch and Evaluate Next

Practitioners should pilot the TVFs on representative data slices to gauge performance and cost impact. Key evaluation points include:

  • Latency of each function on large tables versus a traditional export‑and‑process workflow.
  • Accuracy of the AI/ML output for domain‑specific metrics; consider cross‑checking with custom models if needed.
  • Permission boundaries: ensure that only users who need insight generation can invoke the functions.
  • Integration readiness with existing AI agents or chat‑ops frameworks that consume SQL result sets.

Related CloudNinjas coverage: Google Cloud.

What This Means For Practitioners

  • Adopt the TVFs for ad‑hoc diagnostic queries to cut down on data movement.
  • Update IAM policies to grant controlled access to the new functions.
  • Instrument query monitoring to track cost and performance trends.
  • Prototype agent‑driven workflows that call the TVFs and return structured insights to end users.
Originally published atGoogle Cloud Blog