Skip to content

datafusion_executor

DataFusion vectorized execution for Apache Cloudberry

cloudberry-datafusion · DataFusion vectorized execution for Apache Cloudberry

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102208datafusion_executorcloudberry-datafusion1.0OLAPApache-2.0C

Usage

Sources:

datafusion_executor routes eligible Cloudberry plan fragments through a Rust DataFusion engine. It is an extension for the Cloudberry kernel, with a native C interface; stock PostgreSQL portability is not established.

Core Workflow

shared_preload_libraries = 'datafusion_executor'
CREATE EXTENSION datafusion_executor;
SELECT datafusion_version();
SET datafusion.mode = 'explain';

Operational Boundaries

Load datafusion_executor in shared_preload_libraries and restart coordinator and segment processes so executor hooks exist in every backend. Upstream also documents database-level session preload for new sessions. Install the SQL objects as an administrator. datafusion.mode defaults to off; explain diagnoses eligible fragments without using the alternative executor, while on enables it. Unsupported fragments keep the ordinary executor. datafusion.worker_threads controls the per-backend Rust worker count; the automatic CPU-count setting can oversubscribe a multi-backend installation. Memory is accounted against Cloudberry limits, but spill files are not covered by its normal workfile limits. Floating-point aggregates can differ in their final digits. Diagnostic panic and runtime test functions are intentionally revoked from PUBLIC.

Table reader