Registry / other / arrow-cast

arrow-cast

JSON →
library58.2.0rscratesunverified

Cast kernel and utilities for Apache Arrow.

# Cargo.toml [dependencies] arrow-cast = "58.2.0"
INSTALL
IMPORT
SIG · ARROW-CAST
A
arrow-cast
otherrustv58.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cast
use arrow_cast::cast;

Casts an Int32 array to Float64 using Arrow's cast kernel.

use arrow_cast::cast; use arrow_array::Int32Array; fn main() { let array = Int32Array::from(vec![1, 2, 3]); let casted = cast(&array, &arrow_schema::DataType::Float64).unwrap(); println!("{:?}", casted); }
Debug
Known issues
gotchaCast may fail for incompatible types; error handling required.
fix
Always handle the Result from cast() and check type compatibility.
affects: >=50.0.0
Upgrade
Version history
58.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Meta
1
Amazon
1
OpenAI (training)
1
Resources
arrow-cast — cargo add arrow-cast · libregistry