Crates.io | arrow-udf-flight |
lib.rs | arrow-udf-flight |
version | 0.4.0 |
source | src |
created_at | 2024-05-07 10:44:11.960436 |
updated_at | 2024-10-10 06:02:04.985454 |
description | Client for remote Arrow UDFs. |
homepage | |
repository | https://github.com/risingwavelabs/arrow-udf |
max_upload_size | |
id | 1232063 |
size | 150,659 |
Run user-defined functions in a separate process and call them via Arrow Flight RPC.
Currently the following languages are supported:
Please click the link to see the specific usage.
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();
The communication protocol between client and server is based on Arrow Flight RPC.
Details to be added.