Databricks turns driver analysis and anomaly detection into SQL function calls
Databricks added four SQL-native predictive functions in Beta and upgraded ai_forecast, according to its own blog post. Analysts can run them without training a model, but the post puts no number on the accuracy gain.
The Engineer · Build desk

Genie users: ai_top_drivers available today, ai_forecast and others coming soon. Analysts: SQL editor or notebook, hundreds of millions of rows. ai_forecast teams: holidays and covariates. Databricks: maintains models centrally. Data science teams: usually a bottleneck, Databricks says.
- constraint Genie users ai_top_drivers is available today; ai_forecast and the other functions are coming soon, claim 10
- capability Analysts in SQL editor or notebook Run the functions across hundreds of millions of rows and feed results into queries and pipelines, claim 8
- capability Teams using ai_forecast Built-in holiday support plus external covariates such as pricing changes or marketing spend, claim 6
- decision Databricks Maintains the models centrally, so teams build or manage no infrastructure, claim 7
- exposure Data science teams Databricks says this work usually goes to them, a bottleneck where business users wait in line, claim 13
| Who | How | Kind | Claim |
|---|---|---|---|
| Genie users | ai_top_drivers is available today; ai_forecast and the other functions are coming soon | constraint | 10 |
| Analysts in SQL editor or notebook | Run the functions across hundreds of millions of rows and feed results into queries and pipelines | capability | 8 |
| Teams using ai_forecast | Built-in holiday support plus external covariates such as pricing changes or marketing spend | capability | 6 |
| Databricks | Maintains the models centrally, so teams build or manage no infrastructure | decision | 7 |
| Data science teams | Databricks says this work usually goes to them, a bottleneck where business users wait in line | exposure | 13 |
What happened
- The four new functions are ai_top_drivers, ai_detect_anomalies, ai_predict_value and ai_predict_class, covering driver analysis, outlier flagging, regression and classification.
- In Genie, only ai_top_drivers is available today, and the other four functions are listed as coming soon.
- Databricks says the functions run across hundreds of millions of rows and feed their results into queries and pipelines.
Why it matters
- decision Removing the model-building step also removes the point where a data scientist looked at the fit. Teams now have to decide who backtests ai_forecast output before it feeds a plan.
- contradiction The post pitches plain-language access for business users through Genie, but one of the five functions is live there today. The rest of the Genie story is a promise.
- constraint The business-specific levers the post describes are a holiday calendar and external covariates. The model itself is Databricks' to maintain, so a team that wants different behavior has no tuning path in this announcement.
When an analyst calls ai_forecast, the series goes to a transformer-based time series foundation model, pretrained on a large and diverse collection of series [5]. Databricks says the model already recognizes common patterns such as seasonality and trends, so it needs no tuning [5]. Databricks maintains the model centrally [7].
The post's demo projects monthly NYC taxi ride volumes through the end of 2027 [12]. That series has a seasonal shape, which is the case Databricks describes. A series pushed around by a price change or a campaign is a different case. For that, ai_forecast has built-in holiday support and accepts external covariates, such as pricing changes or marketing spend [6]. For the demo to transfer to your workload, your series would need to look like the ones the model was pretrained on, or your covariates would need to explain what does not.
ai_detect_anomalies takes prepared input. In the example, taxi trips are aggregated into a daily revenue time series and passed to the function, which fits a model automatically and flags unusual days [9]. The aggregation, and its grain, stay with the analyst.
ai_top_drivers, one of the four new functions [14], is the cleanest design in the set. Its example compares January and February 2016 taxi fare revenue across time-of-day and weekday/weekend segments and ranks each segment by absolute and relative revenue impact [11]. Reporting both measures separates a large segment that moved a little from a small one that moved a lot [11].
Databricks says the upgraded ai_forecast is more accurate [3]. The post, in the text we reviewed, includes no figure and no baseline for that claim.
We think these functions fit ad-hoc questions well. Databricks says the queue for a data science team means "many questions never even get asked" [13]. A forecast that sets a budget is a different job, and it should be backtested against your own history before anyone relies on it.
What to watch
- Whether Databricks publishes a backtest or a baseline for the upgraded ai_forecast accuracy.
- When ai_forecast, ai_detect_anomalies, ai_predict_value and ai_predict_class reach Genie.
- Whether the functions leave Beta, and what the documentation says about model versions when Databricks updates the central models.
Clarity's read
What the record supports and how the coverage leans. The claims behind it follow.
Reality
- Evidence30
- Adoption
- Insufficient
- Hype gap+40
- Incentives75
- Confidence60
Claim ledger
Ranked by verification strength, evidence, and original report placement.
- [1]
Predictive AI Functions are now in Beta and let analysts and business users run forecasting, driver analysis and anomaly detection through built-in functions backed by ML models.
- [2]
The functions can be called directly in SQL, invoked in Genie with plain-language questions, or embedded in dashboards.
- [3]
The launch adds four new SQL native functions and improved accuracy to ai_forecast.
- [4]
The functions listed are ai_forecast (project a time series), ai_top_drivers (find which segments most drove a change in a metric), ai_detect_anomalies (flag outlier rows in temporal data), ai_predict_value (regression) and ai_predict_class (classification).
- [5]
ai_forecast is powered by a transformer-based time series foundation model pretrained on a large, diverse collection of time series; Databricks says it recognizes common patterns like seasonality and trends and needs no tuning.
- [6]
The new ai_forecast has built-in holiday support and lets teams specify external covariates, such as pricing changes or marketing spend.
- [7]
Databricks maintains the models centrally, so teams get consistent answers without building or managing infrastructure.
- [8]
Analysts can call the functions in the SQL editor or a notebook, run them across hundreds of millions of rows, and feed the results into queries and pipelines.
- [9]
In the example, NYC taxi trips are aggregated into a daily revenue time series and passed to ai_detect_anomalies, which automatically fits a model to the data and flags unusual days.
- [10]
In Genie, ai_top_drivers is available today, with ai_forecast, ai_detect_anomalies, ai_predict_value and ai_predict_class coming soon.
- [11]
The ai_top_drivers example identifies which time-of-day and weekday/weekend segments contributed most to the change in NYC taxi fare revenue between January and February 2016, ranking each segment by absolute and relative revenue impact.
- [12]
The dashboard example uses ai_forecast to project monthly ride volumes in the NYC taxi trips dataset through the end of 2027.
- [13]
Databricks says answering these questions usually means handing the work to a data science team, creating a bottleneck where business users wait in line and "many questions never even get asked".
- [14]
The four new functions are ai_top_drivers, ai_detect_anomalies, ai_predict_value and ai_predict_class; ai_forecast is the existing function that was upgraded.
- [15]
One of the five listed functions (ai_top_drivers) is available in Genie today.
Get this ledger inside ChatGPT. Ask about any of our stories and the answer brings its figure, each claim’s verdict and the sources. Free, no account.
Sources
1 independent publisher whose own reporting we read for this story.
- databricks.comUnlock powerful insights and forecasts with Predictive AI Functions
1 article · October 14, 2026
Topics and entities
Follow any of these and your For You feed starts watching them — no settings page required.
Topics
- SQL AI functionsFollow
- Time-Series Transformer ModelsFollow
- Data analytics platformsFollow