---
title: "Executable UDFs are now generally available on ClickHouse Cloud"
description: "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+."
url: "https://swe.quest/articles/executable-udfs-are-now-generally-available-on-clickhouse-cloud-afc730ccd3e99d10"
canonical: "https://clickhouse.com/blog/executable-udfs-generally-available-on-clickhouse-cloud"
source: "ClickHouse"
published: "2026-10-05"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 20
tags: ["analytics","rust","llms","cost-optimization","observability"]
---

# Executable UDFs are now generally available on ClickHouse Cloud

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

## Summary

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+. The worked example is a Rust tokenizer UDF built on tiktoken-rs that speaks RowBinary with chunk headers and is called from a materialized view at insert time to count LLM tokens per span. Its token counts are joined against a daily-refreshed LiteLLM price dictionary for cost attribution, and a Python UDF calls Claude to grade a sample of completions. Practical lessons include RowBinary being ~20% faster than TabSeparatedRaw and binary-safe, sizing memory limits for virtual address space (Go reserves ~1.2 GiB), and throughput of ~13M tokens/sec on 4 vCPUs.

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)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)

## 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))
- LLM tokenization basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

ClickHouse Cloud, Executable UDFs, tiktoken-rs, RowBinary, LiteLLM, Terraform, Claude

## Related posts

- [Executable UDFs are now in public beta on ClickHouse Cloud](https://swe.quest/articles/executable-udfs-are-now-in-public-beta-on-clickhouse-cloud-89bd8753f4dda600.md): ClickHouse · 2026-05-30 · Medium · 14 min read · Analytics & OLAP, Inference & serving, Machine learning, SQL, Python
  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.
- [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.
- [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.
- [Why ClickHouse Cloud wins at real-time analytics](https://swe.quest/articles/why-clickhouse-cloud-wins-at-real-time-analytics-ff3bf2806ccb7be7.md): ClickHouse · 2026-10-28 · Medium · 21 min read · Analytics & OLAP, Storage engines, Query engines, Performance engineering, Cost optimization
  In the CostBench streaming benchmark (113.2 billion stock quotes ingested at about 1M rows/s while queries ran), ClickHouse Cloud scored 412× to 1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery and Redshift Serverless.
- [Announcing On-Demand Compute: Instant compute for your most intensive workloads](https://swe.quest/articles/announcing-on-demand-compute-instant-compute-for-your-most-intensive-workloads-963fb95d47ae3b96.md): ClickHouse · 2026-09-10 · Easy · 6 min read · Analytics & OLAP, Query engines, Cloud platforms, Scaling
  ClickHouse Cloud On-Demand Compute, now in private preview, lets a query run on a shared pool of ClickHouse workers outside the service's own cluster by setting make\_distributed\_plan and distributed\_plan\_workers\_num.

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)
