Google Puts AI Directly Inside Your SQL Queries
TL;DR: Google's BigQuery data platform now lets you use AI to analyze unstructured data like text logs or feedback directly with SQL. The new AI.AGG function, now generally available, simplifies complex data synthesis tasks for developers and analysts.
Key facts
- Category
- Database
- Impact
- High
- Published
- Source
- Google Cloud Blog
Full summary
Google BigQuery's new AI function lets you analyze unstructured text and multimodal data directly within your existing SQL workflows, now generally available.
Google Cloud has officially moved its `AI.AGG()` function within the BigQuery data platform from preview to general availability, making it accessible to all customers. According to the announcement on the Google Cloud Blog, this powerful new feature is designed to bridge the gap between structured and unstructured data by allowing teams to run generative AI models directly within a standard SQL query. The function can process millions of rows of unstructured text and multimodal data, transforming them into structured, actionable insights. Common use cases that have emerged during the preview period include distilling themes from large volumes of product feedback, investigating patterns in application logs to identify root causes of errors, and synthesizing user-generated content. This move signals a significant step towards simplifying data workflows that have traditionally required separate, complex data engineering pipelines to connect databases with AI services.
At its core, the `AI.AGG()` function operates as a native SQL aggregate function, placing it in the same category as familiar commands like `COUNT()`, `SUM()`, or `AVG()`. The key difference is its payload and output. Instead of performing a mathematical calculation, `AI.AGG()` takes a column of unstructured data—such as free-text comments or JSON blobs—and passes the entire set to a specified large language model for processing. The model then returns a single, synthesized result, like a concise summary of all the comments, a classification of sentiments, or an extraction of key entities mentioned across the dataset. The technical innovation here is the tight integration within the BigQuery engine. This eliminates the cumbersome and often slow process of building an external ETL (Extract, Transform, Load) pipeline, which would involve exporting data, calling an external AI API, waiting for the results, and then importing them back into the warehouse for further analysis. By keeping the entire operation within a single, secure environment, it reduces architectural complexity, minimizes data movement, and significantly lowers the latency for generating insights.
Google's release of `AI.AGG()` is a prominent example of a crucial trend reshaping the data industry: bringing advanced computation directly to the data, rather than moving massive datasets to external compute environments. Modern data warehouses are no longer just passive storage systems; they are evolving into active, intelligent platforms capable of handling diverse workloads, including machine learning and AI. This strategy is not unique to Google. Competitors are making similar moves to create more integrated and powerful ecosystems. For instance, Snowflake has been heavily investing in Snowpark, which allows developers to run Python, Java, and Scala code directly within the warehouse, while Databricks has built its entire platform on the premise of unifying data analytics and AI. By embedding generative AI capabilities directly into the familiar syntax of SQL, Google is democratizing access to powerful technology, enabling a vast population of data analysts and developers to perform tasks that once required specialized data scientists and ML engineers. This blurs the lines between traditional business intelligence and advanced AI, making BigQuery a more competitive, all-in-one solution.
The immediate practical takeaway for organizations already invested in the Google Cloud ecosystem is the ability to unlock significant value from data they already possess but may have struggled to analyze. Unstructured and semi-structured data sources, such as customer support tickets, survey responses, and detailed server logs, can now be queried for high-level insights using the same SQL interface teams use for their structured data. This dramatically lowers the barrier to entry for building AI-powered features and dashboards. Looking forward, teams adopting this function should carefully monitor its cost, as AI-powered queries consume different resources than standard SQL computations and will be priced accordingly. It is also important to watch for further developments. The original announcement mentioned that highly requested capabilities were also being rolled out alongside the GA release, suggesting that Google will continue to enhance the feature set. We can expect to see support for a wider range of models, more granular controls over model parameters for tuning performance and accuracy, and expanded capabilities for handling even more complex, multimodal data types directly within BigQuery.
Why it matters
For developers and data engineers, this eliminates the need for separate data pipelines to process unstructured text. Running AI models directly within BigQuery via SQL reduces complexity, lowers latency, and makes it easier to build applications that analyze things like user reviews or server logs in near real-time.
Business impact
This feature allows businesses to extract insights from vast amounts of untapped unstructured data without specialized AI teams or complex infrastructure. By simplifying analysis of customer feedback and logs, companies can make faster, more data-driven decisions about products and operations, improving efficiency and customer satisfaction.
Tags
Related on Notifire
Related stories
Primary source: Google Cloud Blog
