Google previews SQL functions for text processing in AlloyDB
Published:
Google Cloud has introduced ai.classify and ai.extract in preview for AlloyDB AI. The functions classify text or extract structured JSON through SQL.
Google Cloud has announced two SQL functions in preview for the AlloyDB AI query engine. ai.classify assigns text to predefined categories and supports single or multiple labels. ai.extract converts unstructured text into JSON using a supplied schema or field list. Google says the functions are available in version 1.6.1 or later of the google_ml_integration extension on PostgreSQL 18. When used in WHERE expressions, the database automatically groups inputs into small batches before sending them to Gemini Enterprise Agent Platform models. The preview should not be confused with general availability. Google identifies support tickets and invoice data among the potential use cases.
Why it matters
Database teams can incorporate classification and structured extraction into SQL queries; the announced support requires PostgreSQL 18 and the appropriate extension.
Source retrieved: 2026-11-28