---
title: "Executable UDFs are now in public beta on ClickHouse Cloud"
description: "Executable UDFs are in public beta on ClickHouse Cloud: you upload a zipped Python function with its model files, and ClickHouse runs it in a pool of long-lived sandboxed processes that can be called from SQL, including inside materialized views."
url: "https://swe.quest/articles/executable-udfs-are-now-in-public-beta-on-clickhouse-cloud-89bd8753f4dda600"
canonical: "https://clickhouse.com/blog/executable-udfs-clickhouse-cloud-beta"
source: "ClickHouse"
published: "2026-05-30"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 14
tags: ["analytics","inference","machine-learning","sql","python"]
---

# Executable UDFs are now in public beta on ClickHouse Cloud

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-05-30, 14 min read, Announcement. Original: [https://clickhouse.com/blog/executable-udfs-clickhouse-cloud-beta](https://clickhouse.com/blog/executable-udfs-clickhouse-cloud-beta)

## Summary

Executable UDFs are in public beta on ClickHouse Cloud: you upload a zipped Python function with its model files, and ClickHouse runs it in a pool of long-lived sandboxed processes that can be called from SQL, including inside materialized views. The demo trains a ~270K-parameter PyTorch autoencoder on trade ticks and scores each insert inline through a materialized view, producing a 32-dim embedding and a reconstruction error. A backfill of ~6B rows ran at ~35K rows/sec on a 3-replica cluster. A raw global anomaly threshold proved misleading for high-priced symbols, so anomalies are defined against per-symbol p95 baselines kept in an hourly refreshable materialized view, which cut leaderboard query time from ~1.7s to ~0.27s. Network-access UDFs that can make outbound HTTPS calls are in private beta.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- ClickHouse materialized views ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- PyTorch basics

## Keywords

ClickHouse Cloud, executable UDFs, PyTorch, autoencoder, refreshable materialized views, Next.js, cosineDistance

## Related posts

- [Executable UDFs are now generally available on ClickHouse Cloud](https://swe.quest/articles/executable-udfs-are-now-generally-available-on-clickhouse-cloud-afc730ccd3e99d10.md): ClickHouse · 2026-10-05 · Medium · 20 min read · Analytics & OLAP, Rust, LLMs, Cost optimization, Observability
  Executable UDFs are now generally available on ClickHouse Cloud across AWS, GCP and Azure, adding a Native runtime for statically linked Rust/Go/C++/JavaScript binaries, outbound network access, per-process memory limits, a deterministic flag that enables the query cache, Cloud API and Terraform support, and per-query UDF metrics in 26.6+.
- [How Fountain rebuilt its data plane on ClickHouse Cloud to power Cue, the Frontline Superintelligence](https://swe.quest/articles/how-fountain-rebuilt-its-data-plane-on-clickhouse-cloud-to-power-cue-the-0dccb4dc5f23d9f5.md): ClickHouse · 2026-09-22 · Medium · 9 min read · Analytics & OLAP, Data pipelines, Event-driven architecture, Multi-tenancy, AI agents
  Fountain replaced a multi-vendor batch pipeline (third-party replication to S3/Iceberg, then BigQuery) with ClickPipes CDC streaming Postgres and MongoDB directly into ClickHouse Cloud, cutting analytics freshness from three hours to under two minutes, with most queries sub-second, at about 66% lower cost.
- [How Hud is building the first runtime code sensor with ClickHouse Cloud](https://swe.quest/articles/how-hud-is-building-the-first-runtime-code-sensor-with-clickhouse-cloud-bf99a6ef581b7571.md): ClickHouse · 2025-11-10 · Medium · 7 min read · Analytics & OLAP, Observability, Data pipelines, Scaling
  Hud, a runtime code sensor that tracks function-level behavior in production, moved its telemetry enrichment pipeline from a Node.js service plus Redis state machine into ClickHouse Cloud itself.
- [Using ClickHouse UDFs to integrate with OpenAI models](https://swe.quest/articles/using-clickhouse-udfs-to-integrate-with-openai-models-798f9ca64f94924a.md): ClickHouse · 2023-09-14 · Medium · 17 min read · Analytics & OLAP, LLMs, SQL, Python
  ClickHouse executable user-defined functions can call the OpenAI chat completions API from SQL, adding sentiment labels or extracted entities to rows at insert or query time.
- [Announcing the new ClickHouse SQL Playground](https://swe.quest/articles/announcing-the-new-clickhouse-sql-playground-3d79733825c39f99.md): ClickHouse · 2024-10-31 · Medium · 7 min read · Analytics & OLAP, Frontend, API design
  sql.clickhouse.com is a new public SQL playground offering over 35 datasets (60 TB) and 220 example queries, with syntax highlighting, autocomplete, query parameters, basic charting via Apache ECharts and shareable links.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
