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

Function create_decimal32_array

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

Source from the content-addressed store, hash-verified

453}
454
455fn create_decimal32_array(
456 array: Vec<Option<i32>>,
457 precision: u8,
458 scale: i8,
459) -> Result<Decimal32Array, ArrowError> {
460 array
461 .into_iter()
462 .collect::<Decimal32Array>()
463 .with_precision_and_scale(precision, scale)
464}
465
466fn create_decimal64_array(
467 array: Vec<Option<i64>>,

Callers

nothing calls this directly

Calls 2

into_iterMethod · 0.45

Tested by

no test coverage detected