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

Function create_decimal256_array

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

Source from the content-addressed store, hash-verified

486}
487
488fn create_decimal256_array(
489 array: Vec<Option<i256>>,
490 precision: u8,
491 scale: i8,
492) -> Result<Decimal256Array, ArrowError> {
493 array
494 .into_iter()
495 .collect::<Decimal256Array>()
496 .with_precision_and_scale(precision, scale)
497}
498
499// Get a selection of datatypes to try and cast to
500fn get_all_types() -> Vec<DataType> {

Callers

nothing calls this directly

Calls 2

into_iterMethod · 0.45

Tested by

no test coverage detected