MCPcopy Create free account
hub / github.com/apache/arrow-rs / create_decimal64_array

Function create_decimal64_array

arrow/tests/array_cast.rs:466–475  ·  view source on GitHub ↗
(
    array: Vec<Option<i64>>,
    precision: u8,
    scale: i8,
)

Source from the content-addressed store, hash-verified

464}
465
466fn create_decimal64_array(
467 array: Vec<Option<i64>>,
468 precision: u8,
469 scale: i8,
470) -> Result<Decimal64Array, ArrowError> {
471 array
472 .into_iter()
473 .collect::<Decimal64Array>()
474 .with_precision_and_scale(precision, scale)
475}
476
477fn create_decimal128_array(
478 array: Vec<Option<i128>>,

Callers

nothing calls this directly

Calls 2

into_iterMethod · 0.45

Tested by

no test coverage detected