Databricks Embeds AI Functions Into SQL Warehouses
Databricks is pushing native AI functions into its SQL warehouses, allowing analysts to run machine learning models on unstructured data directly within standard database queries.

Databricks is streamlining how enterprises process unstructured data by embedding specialized AI functions directly into its SQL warehouse environment. Instead of exporting sensitive data like customer reviews, support tickets, and PDF invoices to external machine learning services, data teams can now invoke generative AI models within standard SQL queries. This integration keeps the entire inference pipeline under the governance of the Databricks Unity Catalog, eliminating the security risks and fragile architectures associated with moving data off-platform.
The platform offers several task-specific SQL functions designed to replace complex, custom-built pipelines. For document processing, ai_parse_document converts raw binary files like PDFs into JSON, which can then be parsed by ai_extract to pull out specific fields. For text analysis, ai_classify performs zero-shot classification to categorize support tickets or analyze sentiment, while ai_translate normalizes multilingual datasets. For custom generative tasks, the general-purpose ai_query function allows users to prompt any Databricks-hosted foundation model directly.
For data practitioners, this shift simplifies both development and operations. Complex workflows, such as a Python-based OCR pipeline combined with an LLM call, collapse into a single SQL query plan. Databricks manages the underlying cluster orchestration, parallelization, and query retries automatically. To manage costs, the company advises developers to try task-specific functions before resorting to ai_query and to monitor usage via the system.billing.usage table. Databricks also recommends testing prompts on a sample of at least 10,000 rows to evaluate the cost-accuracy trade-off before scaling to production.
This is our own summary of reporting by Databricks AI



