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

Function create_decimal128_array

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

Source from the content-addressed store, hash-verified

475}
476
477fn create_decimal128_array(
478 array: Vec<Option<i128>>,
479 precision: u8,
480 scale: i8,
481) -> Result<Decimal128Array, ArrowError> {
482 array
483 .into_iter()
484 .collect::<Decimal128Array>()
485 .with_precision_and_scale(precision, scale)
486}
487
488fn create_decimal256_array(
489 array: Vec<Option<i256>>,

Callers

nothing calls this directly

Calls 2

into_iterMethod · 0.45

Tested by

no test coverage detected