Back Issues/Search Home → Calendar → Archive → RSS → Subscribe → Services → Vendors → Blog → Current Issue → Popular → Newsletters (LinkedIn, Substack)

All issues › Volume 344, Issue 3 › IT Vendor News › ClickHouse

ClickHouse Forecasting and Anomaly Detection With Time Series Foundation Models

ClickHouse, Tuesday, November 17th, 2026

ClickHouse shows how to call the TimesFM 3.0 foundation model from SQL through executable UDFs for forecasting and anomaly detection.

ClickHouse demonstrates connecting the TimesFM 3.0 time series foundation model to ClickHouse through executable Python UDFs that send arrays to a model server over HTTP.

A companion repository, clickhouse-timeseries-ai, provides the model server, UDF definitions and a Docker Compose setup that runs on CPU, with roughly 8 GB of memory suggested as a starting point.

The aiForecast function returns expected values with q10 to q90 quantiles, and aiDetectAnomalies scores observations against forecasts, optionally using past and future covariates; the examples use M5 retail sales data.

ClickHouse notes the TimesFM 3.0 weights carry non-commercial, non-production restrictions and that these functions are a demo, not built-in ClickHouse AI functions.

more →  ·  More from ClickHouse →