kernel

command
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command kernel demonstrates the experimental SEA-via-kernel backend.

The kernel backend is opt-in and compiled in only under the databricks_kernel build tag with CGO enabled, and it links the Rust kernel static library. Build the library first, then run this example with the tag:

make -C ../.. kernel-lib                       # build the pinned kernel .a + header
CGO_ENABLED=1 go run -tags databricks_kernel .

Without the tag, the program still compiles (it uses only the stable public API), but WithUseKernel(true) returns an error wrapping dbsqlerr.ErrKernelNotCompiled at connect — which this example detects and reports rather than treating as a hard failure.

Required environment (a .env file in this directory is loaded automatically):

DATABRICKS_HOST         workspace hostname (no scheme)
DATABRICKS_ACCESSTOKEN  personal access token
DATABRICKS_HTTPPATH     warehouse http path (or set DATABRICKS_WAREHOUSEID)
DATABRICKS_WAREHOUSEID  bare warehouse id (kernel routes by this when set)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL