arrow-udf-flight

Crates.ioarrow-udf-flight
lib.rsarrow-udf-flight
version0.4.0
sourcesrc
created_at2024-05-07 10:44:11.960436+00
updated_at2024-10-10 06:02:04.985454+00
descriptionClient for remote Arrow UDFs.
homepage
repositoryhttps://github.com/risingwavelabs/arrow-udf
max_upload_size
id1232063
size150,659
crates-io (github:arrow-udf:crates-io)

documentation

README

Remote UDF based on Arrow Flight

Crate Docs

Run user-defined functions in a separate process and call them via Arrow Flight RPC.

Server

Currently the following languages are supported:

Please click the link to see the specific usage.

Client

Add the following lines to your Cargo.toml:

[dependencies]
arrow-udf-flight = "0.2"
use arrow_udf_flight::Client;

// Connect to the UDF server
let client = Client::new("localhost:8815").await.unwrap();

// Call functions
let input: RecordBatch = ...;
let output: RecordBatch = client.call("gcd", &input).await.unwrap();

Communication Protocol

The communication protocol between client and server is based on Arrow Flight RPC.

Details to be added.

Commit count: 208

cargo fmt